sdw_master_rt_free(9)
π sdw_master_rt_free(9) π
okay so this one is from the Kernel API Manual, and it's giving βcleanup eraβ β¨ like bestie, we are freeing runtime handles and being very mindful about locks. let's go π
πΈ NAME πΈ
sdw_master_rt_free - Free Master runtime handle
β¨ SYNOPSIS β¨
void sdw_master_rt_free (struct sdw_master_runtime *m_rt , struct sdw_stream_runtime *stream );
π«Ά ARGUMENTS π«Ά
m_rtβ Master runtime node. that's the main-character node, iykyk.streamβ Stream runtime handle.
π DESCRIPTION π
okay so real talk: this function is to be called with bus_lock held π do not skip that part, bestie. It frees the Master runtime handle and associated Slave(s) runtime handle. that's the whole slay.
and here's the little gotcha: if this is called first, then sdw_slave_rt_free will have no effect, because the Slave(s) runtime handle would already be freed up π like, it already left the group chat.
fr fr: call it withbus_lockheld. and if this one goes first,sdw_slave_rt_freeis gonna have no effect since the Slave(s) runtime handle is already freed up.
π SEE ALSO π
Kernel file: ./drivers/soundwire/stream.c β and the whole friend group is:
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_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)
xoxo from the Kernel API Manual bestie π β source/version: ./drivers/soundwire, date: October 2026.
π¦ 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