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)
Fri, Oct 10, 6:32 AM
Unknown Object (File)
Sun, Oct 5, 7:49 PM
Unknown Object (File)
Sep 3 2025, 5:35 PM
Unknown Object (File)
Aug 29 2025, 9:19 PM
Unknown Object (File)
Aug 29 2025, 1:16 PM
Unknown Object (File)
Aug 14 2025, 10:56 PM
Unknown Object (File)
Aug 11 2025, 6:01 PM
Unknown Object (File)
Jun 28 2025, 11:38 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58474
Build 55362: arc lint + arc unit

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