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)
Wed, Jan 28, 7:06 PM
Unknown Object (File)
Sun, Jan 25, 7:59 AM
Unknown Object (File)
Dec 19 2025, 10:07 PM
Unknown Object (File)
Dec 19 2025, 10:48 AM
Unknown Object (File)
Dec 14 2025, 6:57 PM
Unknown Object (File)
Dec 4 2025, 3:03 AM
Unknown Object (File)
Dec 3 2025, 7:37 PM
Unknown Object (File)
Dec 2 2025, 7:04 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