sdw_acquire_bus_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdw_acquire_bus_lock(9) β€” like, the Kernel API Manual page you actually wanna read πŸŽ€

okay so bestie, welcome to the Kernel API Manual entry for sdw_acquire_bus_lock(9) β€” she's short, she's sweet, and she holds a lock. main character energy fr fr. πŸ’–


✨ NAME ✨

sdw_acquire_bus_lock β€” grabs the bus lock for, like, all the Master runtime(s). every single one. no cap. πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

void sdw_acquire_bus_lock (struct sdw_stream_runtime *stream );

🌸 ARGUMENTS 🌸

  • stream β€” the SoundWire stream in question 🫢. yeah. that's the whole argument list. she's lowkey uncomplicated.

πŸ‘‘ DESCRIPTION πŸ‘‘

So what she does is: acquire bus_lock for each and every one of the master runtime (m_rt) parts of this stream πŸ’… β€” because you gotta reconfigure the bus, and you can't just do that unsupervised. think of it as herding all the master runtimes into one room and locking the door so nobody messes with the bus mid-reconfigure. iconic behavior, honestly. ✨


πŸ’€ NOTE πŸ’€

okay this part matters, so listen: this function gets called from SoundWire stream ops, and it is expected that a global lock is held before acquiring bus_lock. so like… the lock's already locked, bestie. don't come in here trying to acquire things with no global lock held. that's the vibe check and you will fail it. 😭 πŸ”’

🌈 SEE ALSO 🌈

Kernel file ./drivers/soundwire/stream.c, plus the whole friend group:

like. the whole squad. go read them too, iykyk πŸ§šβ€β™€οΈ


and that's the page, bestie!! πŸ“ it lives in ./drivers/soundwire and this particular drop is dated October 2026 β€” see you in the next release, mwah πŸ’œ πŸŽ€πŸ¦‹πŸŒŸ

πŸ“¦ where this page comes from