Page MenuHomeFreeBSD

sound: Retire snd_mtx* wrappers
ClosedPublic

Authored by christos on Nov 21 2025, 12:53 PM.
Tags
None
Referenced Files
F174295609: D53855.diff
Fri, Oct 2, 3:28 AM
F174290231: D53855.id.diff
Fri, Oct 2, 2:19 AM
Unknown Object (File)
Tue, Sep 29, 6:58 PM
Unknown Object (File)
Tue, Sep 29, 6:55 PM
Unknown Object (File)
Sat, Sep 19, 9:16 AM
Unknown Object (File)
Wed, Sep 16, 2:53 PM
Unknown Object (File)
Wed, Sep 16, 7:24 AM
Unknown Object (File)
Mon, Sep 14, 4:06 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