Page MenuHomeFreeBSD

sound: Handle midistat_lock through function interface
ClosedPublic

Authored by christos on Jul 3 2024, 2:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 21 2025, 2:51 PM
Unknown Object (File)
Feb 20 2025, 3:14 AM
Unknown Object (File)
Feb 5 2025, 4:06 AM
Unknown Object (File)
Feb 5 2025, 2:32 AM
Unknown Object (File)
Feb 5 2025, 2:25 AM
Unknown Object (File)
Feb 4 2025, 8:19 AM
Unknown Object (File)
Jan 26 2025, 12:59 PM
Unknown Object (File)
Jan 3 2025, 8:23 PM
Subscribers

Details

Summary

midistat_lock is used outside midi/midi.c as well, so implement lock,
unlock and lockassert functions in order to not expose the lock in the
header file.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Move function declarations at the top to match the function definitions'
position.

sys/dev/sound/midi/midi.c
180

I assume the rename here is to make sure there are no leftover (or external) consumers?

sys/dev/sound/midi/midi.c
180

It's because midistat_lock() will have the same name as the lock and we'll get a compile error.

This revision is now accepted and ready to land.Jul 6 2024, 4:43 PM