diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-06-12 12:14:03 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-06-12 12:14:03 +0000 |
| commit | 8c5e3b7ef5bddbb67f80304ad0ecbd798342dcde (patch) | |
| tree | ee25aff9c982d2831db89f9e92d3f646f23c0bbb /sys/dev/microcode | |
| parent | f4c93d776a5d8d1ae81649059282120c8a709405 (diff) | |
drvctl(4): Hold a deviter while issuing config_detach.
Otherwise another concurrent detach -- e.g., from concurrent drvctl
or from USB port disconnection -- can pull the device_t out from
under us.
XXX Need to do this for _every_ operation config_* operation on a
device_t; device_find_by_xname is just fundamentally broken because a
concurrent detach can pull the device_t rug out from under you.
We really need another mechanism for holding a weak reference to a
device, and temporarily getting a strong reference to it; abusing
deviter is a bit of a kludge, and doesn't work very well because it
doesn't properly trigger garbage collection of devices detached while
other concurrent deviters are pending.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions
