Page MenuHomeFreeBSD

sound: Retire snd_mtx* wrappers
ClosedPublic

Authored by christos on Nov 21 2025, 12:53 PM.
Tags
None
Referenced Files
F157322327: D53855.diff
Wed, May 20, 8:06 AM
F157299945: D53855.diff
Wed, May 20, 3:35 AM
Unknown Object (File)
Fri, May 15, 11:52 PM
Unknown Object (File)
Thu, May 14, 12:02 AM
Unknown Object (File)
Fri, May 8, 7:30 PM
Unknown Object (File)
Fri, May 8, 6:20 AM
Unknown Object (File)
Fri, May 8, 12:18 AM
Unknown Object (File)
Tue, Apr 28, 5:05 AM
Subscribers
None

Details

Summary

Do not create mutexes with snd_mtxcreate(). It doesn't provide any
value, plus it first allocates the mutex with malloc(9). Allocate
mutexes in the stack and use mtx_* functions directly instead of the
snd_mtx* wrappers.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68780
Build 65663: arc lint + arc unit