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)
Sat, Jul 4, 12:50 PM
Unknown Object (File)
Tue, Jun 30, 1:36 AM
Unknown Object (File)
Sun, Jun 28, 8:02 PM
Unknown Object (File)
Fri, Jun 26, 10:06 PM
Unknown Object (File)
Sun, Jun 21, 1:48 AM
Unknown Object (File)
Sat, Jun 20, 9:28 AM
Unknown Object (File)
Thu, Jun 18, 10:17 AM
Unknown Object (File)
May 26 2026, 8:44 PM
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