Page MenuHomeFreeBSD

sound: Retire snd_mtx* wrappers
ClosedPublic

Authored by christos on Nov 21 2025, 12:53 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Mon, Apr 27, 7:37 PM
Unknown Object (File)
Mon, Apr 27, 10:06 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 Not Applicable
Unit
Tests Not Applicable