sdw_ml_sync_bank_switch(9)
π sdw_ml_sync_bank_switch(9) β like, the Kernel API Manual, bestie β¨
okay so real talk, this is a page straight out of the Kernel API Manual and it's about sdw_ml_sync_bank_switch β the whole Multilink register bank switch moment. it's short, it's sweet, it's giving "small function, big responsibilities" energy. let's get into it π«Ά
β¨ NAME β¨
sdw_ml_sync_bank_switch β Multilink register bank switch. that's it. that's the vibe. no cap. π
πΈ SYNOPSIS πΈ
int sdw_ml_sync_bank_switch (struct sdw_bus *bus , bool multi_link );
like yes, she takes two things and hands you back an int. iconic behavior honestly π
π¦ ARGUMENTS π¦
busβ your SDW bus instance. the main character of this whole operation tbh πmulti_linkβ abooltelling you whether this is a multi-link stream with hardware-based sync. so like, is this the hardware-sync multi-link situation or nah? that's the whole question π§
π DESCRIPTION π
so here's the tea, bestie: the caller function should free the buffers on error.
β οΈ ok but seriously β that's not a suggestion, that's the contract. if this thing comes back with an error, you are on buffer cleanup duty. nobody's gonna do it for you. not to be dramatic but ππ β free the buffers. periodt.
β SEE ALSO β
the whole friend group showed up, fr fr β go say hi to:
- Kernel file
./drivers/soundwire/stream.cβ the source, the origin story, the birthplace π 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_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_remove_master(9)sdw_stream_add_slave(9)sdw_stream_remove_slave(9)
π and that's the whole page, bestie β short and sweet, just how we like it. mwah π
signing off from ./drivers/soundwire, dated October 2026 β catch you in the next manpage, ily, bye ππ¦β¨
π¦ 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