sdw_slave_rt_alloc(9)
β¨ sdw_slave_rt_alloc β¨
okay so real quick β this page is from the Kernel API Manual (yes bestie, kernel docs can be cute too, we're making it happen) and it's literally all about one function. buckle up π
π NAME π
sdw_slave_rt_alloc β allocate a Slave runtime handle. that's it, that's the whole job π«Ά
πΈ SYNOPSIS πΈ
struct sdw_slave_runtime * sdw_slave_rt_alloc (struct sdw_slave *slave ,
struct sdw_master_runtime *m_rt );
likeβ¦ it takes two things and hands you back a struct sdw_slave_runtime *. iconic behavior honestly π
π¦ ARGUMENTS π¦
slaveβ the Slave handle. your little guy. the one you're allocating a runtime for π§m_rtβ the Master runtime handle. the other half of the duo, main character energy fr fr π
π₯ DESCRIPTION π₯
so here's the tea β β this function has one rule and you literally cannot skip it:
you must call this with bus_lock held. no cap. if you don't, that's on you bestie π
that's genuinely the whole description in the original and honestly? it ate. short, sweet, terrifying. periodt.
π SEE ALSO π
okay this list is long but do NOT skip it, every single one of these is a real reference and i'm not about to drop a single name π (kernel file: ./drivers/soundwire/stream.c, slay):
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_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!! πβ this little cutie lives in ./drivers/soundwire, and it's dated October 2026 β so yeah, it's giving future-dated queen ππ¦ sending you off with love, go hold that bus_lock 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