HomeFreeBSD

ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver

Description

ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver

Previosuly, USB_IFACE_DRIVER_ACTIVE would report that the driver is
active even after it detached. That's because a device(9) still
remains.

So, add device_is_alive(9) check for more accurate reporting.

Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43960

(cherry picked from commit 8f374fa528d7643919bca1b4153dde03996305fe)

Details

Provenance
avgAuthored on Feb 19 2024, 10:44 AM
Reviewer
markj
Differential Revision
D43960: ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver
Parents
rGd68ccfb4ea2b: vnet: add CURVNET_ASSERT_SET for !VIMAGE
Branches
Unknown
Tags
Unknown