STRUCT SDW_SLAVE_RUNTIME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hey bestie πŸ’– welcome to struct sdw_slave_runtime(9), straight outta the Kernel API Manual. This struct is the runtime stream parameters for a Slave, and the way that it's lowkey the backstage pass for one stream is iconic. We're going field by field, no skips, periodt. ✨


πŸ’– NAME πŸ’–

struct sdw_slave_runtime β€” Runtime Stream parameters for Slave. That's the whole vibe check, bestie: this is the runtime stream parameters for a Slave. 🫢

🌸 SYNOPSIS 🌸

Okay so here's the struct definition, copied exactly β€” no renaming, no "fixing", no cap:

       struct sdw_slave_runtime {
           struct sdw_slave *slave;
           enum sdw_data_direction direction;
           unsigned int ch_count;
           struct list_head m_rt_node;
           struct list_head port_list;
        };

πŸŽ€ Members πŸŽ€

  • slave β€” the Slave handle, aka the main character pointer for this whole runtime-stream situation πŸ’…
  • direction β€” data direction for the Slave, typed as enum sdw_data_direction; the enum is right there in the synopsis, iykyk 🌈
  • ch_count β€” number of channels handled by the Slave for this stream; it's an unsigned int, so keep that in mind bestie πŸ”₯
  • m_rt_node β€” the sdw_master_runtime list node, literally what it says on the label πŸŽ€
  • port_list β€” list of Slave Ports configured for this stream; it's a struct list_head and it's holding the port lineup ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/soundwire/bus.h β€” go read it, bestie, it's right there. Also check out struct sdw_msg(9), struct sdw_bpt_section(9), struct sdw_bpt_msg(9), struct sdw_port_runtime(9), and struct sdw_master_runtime(9). That's the whole friend group πŸ’œ


Cute sign-off: this page comes from the ./drivers/soundwire source tree, dated October 2026, and it's still serving struct sdw_slave_runtime(9) β€” slay, bye! πŸ’…πŸŽ€

πŸ“¦ where this page comes from