Page MenuHomeFreeBSD

usb: change LIST to SLIST to avoid LinuxKPI conflicts
ClosedPublic

Authored by bz on Sep 4 2024, 7:28 PM.
Tags
None
Referenced Files
F154346555: D46534.diff
Tue, Apr 28, 12:11 AM
Unknown Object (File)
Mon, Apr 27, 9:06 AM
Unknown Object (File)
Mon, Apr 27, 7:04 AM
Unknown Object (File)
Sun, Apr 26, 11:42 PM
Unknown Object (File)
Tue, Apr 21, 3:12 PM
Unknown Object (File)
Sat, Apr 11, 8:05 PM
Unknown Object (File)
Mar 8 2026, 8:38 AM
Unknown Object (File)
Mar 7 2026, 7:39 PM
Subscribers

Details

Summary

In order to better integrate modern LinuxKPI USB this tries to reduce
a contention point of "LIST". Given there is no need to us a LIST here
change it to SLIST to avoid conflicts.

Sponsored by: The FreeBSD Foundation
X-MFC? unclear

Test Plan

Manually extract from a larger change in a different branch;
make universe for amd64/arm64 are running.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59304
Build 56191: arc lint + arc unit

Event Timeline

bz requested review of this revision.Sep 4 2024, 7:28 PM

I think this is fine even if it's sort of a lucky workaround (we still mix Linux and FreeBSD namespaces, we're just capitalizing on Linux's lack of SLIST it seems).

sys/dev/usb/usb_device.c
2269

extra blank line?

This revision is now accepted and ready to land.Sep 13 2024, 1:38 PM