Page MenuHomeFreeBSD

LinuxKPI: mod_devicetable, add comment about USB
ClosedPublic

Authored by bz on Jan 31 2026, 12:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 19, 7:38 AM
Unknown Object (File)
Fri, Mar 13, 11:42 AM
Unknown Object (File)
Fri, Mar 13, 3:43 AM
Unknown Object (File)
Thu, Mar 12, 5:45 PM
Unknown Object (File)
Thu, Mar 12, 10:55 AM
Unknown Object (File)
Wed, Mar 11, 9:57 AM
Unknown Object (File)
Feb 4 2026, 2:54 AM
Unknown Object (File)
Feb 1 2026, 1:12 PM

Details

Summary

USB structures are defined with the native USB implementation.
Just leave a comment why they are not here.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Jan 31 2026, 12:48 AM

This is a simple comment. Anyone any comments on it? Otherwise it'll go in within 48 hours.

dumbbell added inline comments.
sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
87

I don’t understand what you mean here.

bz marked an inline comment as done.Feb 9 2026, 7:06 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
87

Normally we would define struct usb_device_id here but the USB stack is tight into the native USB stack.
MODULE_DEVICE_TABLE_BUS_usb is (well will be, see somewhere in the stack) defined in usb.h.

This is similar to what we have in PCI (where all this is/was just in pci.h):
https://cgit.freebsd.org/src/blame/sys/compat/linuxkpi/common/include/linux/pci.h#n65 and following.

It is just now time to break this up so that further bus attachments (USB, SDIO) can be added.

dumbbell added inline comments.
sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
87

Thanks for the clarification!

This revision is now accepted and ready to land.Feb 9 2026, 7:10 PM
This revision was automatically updated to reflect the committed changes.
bz marked an inline comment as done.