sdw_slave_rt_free(9)
π sdw_slave_rt_free (9) β from the Kernel API Manual, bestie π
Okay so picture this: it's a kernel API manual page, yeah? And this one's about a little function called sdw_slave_rt_free. Girl, the name literally spoils it β it frees the runtime handle for a Slave (or Slaves, plural, she's flexible β¨). It's from the SoundWire corner of the kernel, living its best life at ./drivers/soundwire, and we're gonna go through the whole thing together. No skips, no cap. π«Ά
β¨ NAME β¨
sdw_slave_rt_free β Free Slave(s) runtime handle πΈ
β¨ SYNOPSIS β¨
void sdw_slave_rt_free (struct sdw_slave *slave , struct
sdw_stream_runtime *stream );
Like, that's the whole signature. void return, so she doesn't even give you a result back β she just does the thing and dips. π
π ARGUMENTS π
Two args, both little icons in their own right:
slaveβ the Slave handle. Yep. That's the thing. πstreamβ the Stream runtime handle. The other thing. π¦
That's it, that's the roster. Short and iconic.
π DESCRIPTION π
So here's the one thing you actually need to internalize, bestie, because it's the entire description and it's non-negotiable:
This function is to be called with bus_lock held. π
Not "you could", not "you might wanna" β it is to be called with bus_lock held. Periodt. So go grab that bus lock before you even think about calling her. Let's not be the reason something explodes. π
π¦ SEE ALSO π¦
The whole group chat, fr fr β every single one of these is part of the same SoundWire saga, and yes, you're getting all of them, because I would never do you like that:
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_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_acquire_bus_lock(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)
Also lowkey the kernel file ./drivers/soundwire/stream.c is where it all goes down, so π there if you're nosy like me.
And that's the page, babe! π She lives in ./drivers/soundwire, this particular drop is from October 2026, and the whole thing is filed under the Kernel API Manual β sdw_slave_rt_free(9), mwah. π Go hold that bus lock. π
π¦ 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