diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-08-15 15:42:57 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-08-15 15:42:57 +0000 |
commit | 2e74f8d2a5ec1615da87208faeb1c64735fc5c64 (patch) | |
tree | 99fdc32e57fe511a68b57a70585fea2b615a844d /sys/kern/device_if.m | |
parent | 0f8b6a08b6cf5ed24bea18a23d546ae01738c2ef (diff) | |
download | FreeBSD-src-2e74f8d2a5ec1615da87208faeb1c64735fc5c64.zip FreeBSD-src-2e74f8d2a5ec1615da87208faeb1c64735fc5c64.tar.gz |
Revert r239178 and implement two new functions, namely
"device_free_softc()" and "device_claim_softc()",
to allow USB serial drivers refcounting the softc.
These functions are used to grab the softc from
auto-free and to free the softc back to the correct
malloc type, respectivly.
Discussed with: jhb
MFC after: 2 weeks
Diffstat (limited to 'sys/kern/device_if.m')
-rw-r--r-- | sys/kern/device_if.m | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/kern/device_if.m b/sys/kern/device_if.m index edec42b..eb720eb 100644 --- a/sys/kern/device_if.m +++ b/sys/kern/device_if.m @@ -316,14 +316,3 @@ METHOD int resume { METHOD int quiesce { device_t dev; } DEFAULT null_quiesce; - -/** - * @brief Free the device softc - * - * @param _dev device pointer - * @param _softc pointer to softc - */ -METHOD void free_softc { - device_t _dev; - void *_softc; -} DEFAULT device_free_softc; |