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, Feb 28, 2:07 PM
Unknown Object (File)
Sat, Feb 28, 2:44 AM
Unknown Object (File)
Thu, Feb 26, 4:45 PM
Unknown Object (File)
Thu, Feb 26, 2:05 AM
Unknown Object (File)
Jan 28 2026, 7:06 PM
Unknown Object (File)
Jan 25 2026, 7:59 AM
Unknown Object (File)
Dec 19 2025, 10:07 PM
Unknown Object (File)
Dec 19 2025, 10:48 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