sdw_acquire_bus_lock(9)
π 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:
sdw_program_port_params(9)sdw_enable_disable_slave_ports(9)sdw_enable_disable_ports(9)sdw_prep_deprep_ports(9)sdw_notify_config(9)sdw_program_params(9)sdw_ml_sync_bank_switch(9)sdw_slave_rt_alloc(9)sdw_slave_rt_config(9)sdw_slave_rt_free(9)sdw_master_rt_alloc(9)sdw_master_rt_config(9)sdw_master_rt_free(9)sdw_config_stream(9)sdw_get_slave_dpn_prop(9)sdw_release_bus_lock(9)sdw_prepare_stream(9)sdw_enable_stream(9)sdw_disable_stream(9)sdw_deprepare_stream(9)sdw_alloc_stream(9)sdw_startup_stream(9)sdw_shutdown_stream(9)sdw_release_stream(9)sdw_stream_add_master(9)sdw_stream_remove_master(9)sdw_stream_add_slave(9)sdw_stream_remove_slave(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms