Page MenuHomeFreeBSD

stand/usb: Update for devclass being removed from DRIVER_MODULE
ClosedPublic

Authored by jhb on Fri, Jan 10, 3:22 AM.
Tags
None
Referenced Files
F108600245: D48409.diff
Sun, Jan 26, 7:23 PM
F108533481: D48409.diff
Sun, Jan 26, 12:19 AM
Unknown Object (File)
Thu, Jan 23, 10:43 PM
Unknown Object (File)
Thu, Jan 23, 10:17 PM
Unknown Object (File)
Thu, Jan 23, 7:06 PM
Unknown Object (File)
Wed, Jan 15, 5:22 AM
Unknown Object (File)
Tue, Jan 14, 5:53 AM
Unknown Object (File)
Mon, Jan 13, 8:06 PM
Subscribers

Details

Summary

The kshim code abused the devclass argument to DRIVER_MODULE in some
odd ways. Instead, refactor the devclass handling to more closely
mirror what new-bus does in the kernel by having a linked list of
devclasses looked up by name and associate devices with a devclass.

Devices are now only associated with a module while probing and
attaching.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable