Page MenuHomeFreeBSD

usb: Refactor functions need lock
Needs ReviewPublic

Authored by aokblast on May 29 2026, 7:05 AM.
Tags
Referenced Files
Unknown Object (File)
Sat, Aug 15, 12:04 AM
Unknown Object (File)
Tue, Aug 11, 8:00 PM
Unknown Object (File)
Sun, Aug 9, 7:12 PM
Unknown Object (File)
Sun, Aug 9, 4:12 PM
Unknown Object (File)
Sat, Aug 8, 9:31 AM
Unknown Object (File)
Fri, Aug 7, 4:04 PM
Unknown Object (File)
Mon, Aug 3, 6:24 AM
Unknown Object (File)
Sat, Jul 25, 5:13 AM

Details

Summary

In the USB subsystem, it is often difficult to determine which functions
require the lock context and which do not. To improve readability and
maintainability, all functions that require the lock context are
renamed with the _locked suffix. In addition, mtx_assert checks are
added to all non-static function and static functions used as function
pointers to sure the correct lock context is held.

Diff Detail

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