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)
Mon, Apr 6, 12:05 PM
Unknown Object (File)
Mon, Apr 6, 12:02 PM
Unknown Object (File)
Sun, Apr 5, 2:02 PM
Unknown Object (File)
Sun, Apr 5, 6:26 AM
Unknown Object (File)
Feb 28 2026, 2:07 PM
Unknown Object (File)
Feb 28 2026, 2:44 AM
Unknown Object (File)
Feb 26 2026, 4:45 PM
Unknown Object (File)
Feb 26 2026, 2: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 Not Applicable
Unit
Tests Not Applicable