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
Unknown Object (File)
Sat, Nov 29, 6:46 PM
Unknown Object (File)
Thu, Nov 27, 12:32 AM
Unknown Object (File)
Thu, Nov 27, 12:32 AM
Unknown Object (File)
Wed, Nov 26, 11:40 PM
Unknown Object (File)
Thu, Nov 20, 5:24 PM
Unknown Object (File)
Nov 12 2025, 1:35 AM
Unknown Object (File)
Nov 4 2025, 1:03 PM
Unknown Object (File)
Nov 4 2025, 6:35 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 61633
Build 58517: arc lint + arc unit

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