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

(cherry picked from commit 8f374fa528d7643919bca1b4153dde03996305fe)

Details

Provenance
avgAuthored on Feb 19 2024, 10:44 AM
Parents
rG406f9fd0a7d8: md5.1: Fix the GNU mode example when using a digest file
Branches
Unknown
Tags
Unknown