sdw_stream_remove_master(9)
π sdw_stream_remove_master β the Kernel API Manual glow-up π
okay so bestie, we're in the Kernel API Manual today and this page is literally about sdw_stream_remove_master and honestly? it's giving "cleanup era" β¨ she's the function you call when the master needs to leave the stream. no drama, just removal. let's get into it π¦
β¨ NAME β¨
sdw_stream_remove_master β Remove master from sdw_stream π«
πΈ SYNOPSIS πΈ
int sdw_stream_remove_master (struct sdw_bus *bus , struct
sdw_stream_runtime *stream );
she returns an int, she takes two pointers, she's iconic, periodt π
π«Ά ARGUMENTS π«Ά
busβ the SDW Bus instance π like, the whole bus vibe, that's her.streamβ the SoundWire stream π the actual stream we're doing surgery on.
β DESCRIPTION β
so what does she do? this removes and frees port_rt and master_rt from a stream. both of them. gone. freed. not me crying over port_rt and master_rt ππ
lowkey important: it's not just removing, it's freeing too β so those allocations are handled, no cap, and you don't have to go do it yourself. main character energy fr fr π
π SEE ALSO π
the kernel file in question is ./drivers/soundwire/stream.c β that's the home base bestie π and here's the whole friend group, all of them, every single one, no skips π:
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_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_add_slave(9)sdw_stream_remove_slave(9)
like, that's the whole group chat and yes you should probably read all of them π§π
okay that's the page!! mwah π stay hydrated, lock your bus, and remember: if you're adding a master you're gonna need her counterpart sdw_stream_remove_master eventually πβ¨
this little beauty lives under ./drivers/soundwire and the manual's stamped October 2026 β so she's fresh, she's dated, she's slaying π
π¦ bye bestie!! π«Ά
π¦ 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