Page MenuHomeFreeBSD

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

Authored by jhb on Jan 10 2025, 3:22 AM.
Tags
None
Referenced Files
F163349001: D48409.id.diff
Wed, Jul 22, 9:37 AM
F163348985: D48409.id.diff
Wed, Jul 22, 9:37 AM
Unknown Object (File)
Mon, Jul 20, 5:22 AM
Unknown Object (File)
Fri, Jul 10, 1:42 AM
Unknown Object (File)
Fri, Jul 3, 6:23 AM
Unknown Object (File)
Wed, Jul 1, 11:56 PM
Unknown Object (File)
Wed, Jul 1, 2:15 AM
Unknown Object (File)
Tue, Jun 30, 4:42 AM
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

Event Timeline

jhb requested review of this revision.Jan 10 2025, 3:22 AM

Love the concept. Spot checked the impl. Structure is good, but didn't dive deeply in.

This revision is now accepted and ready to land.Jan 10 2025, 4:40 AM