Page MenuHomeFreeBSD

usb: Refactor functions need lock
Needs ReviewPublic

Authored by aokblast on Fri, May 29, 7:05 AM.
Tags
Referenced Files
Unknown Object (File)
Fri, Jun 19, 4:55 PM
Unknown Object (File)
Wed, Jun 17, 11:33 PM
Unknown Object (File)
Sun, Jun 7, 6:17 AM
Unknown Object (File)
Sun, Jun 7, 6:13 AM
Unknown Object (File)
Sat, Jun 6, 12:32 AM
Unknown Object (File)
Fri, Jun 5, 10:39 PM
Unknown Object (File)
Fri, Jun 5, 11:45 AM
Unknown Object (File)
Fri, Jun 5, 5:25 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