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
F170651359: D48409.id149030.diff
Sat, Sep 5, 7:57 PM
Unknown Object (File)
Sat, Sep 5, 11:25 AM
Unknown Object (File)
Sat, Sep 5, 4:43 AM
Unknown Object (File)
Fri, Sep 4, 9:26 PM
Unknown Object (File)
Thu, Sep 3, 11:59 AM
Unknown Object (File)
Wed, Sep 2, 9:18 PM
Unknown Object (File)
Wed, Sep 2, 12:25 PM
Unknown Object (File)
Wed, Sep 2, 10:14 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