sdw_nread(9)
π sdw_nread(9) β like, the Kernel API Manual page you actually want to read π
okay so bestie, welcome to sdw_nread(9) from the Kernel API Manual (section 9, soundwire girlies rise). this one is short and sweet and it slays β let me put you on. π
β¨ NAME β¨
sdw_nread β read "n" contiguous SDW Slave registers. that's it, that's the whole vibe. n registers, all lined up next to each other, read in one go. π¦
πΈ SYNOPSIS πΈ
int sdw_nread (struct sdw_slave *slave , u32 addr , size_t count , u8
*val );
π ARGUMENTS π
slaveβ the SDW Slave. like, the actual device we're talking to. your main character. πaddrβ the register address. where the reading adventure begins. β¨countβ the length. how many registers we're grabbing, i.e. the "n" innread. literally the whole point. π₯valβ the buffer where the values that got read end up living. the little home for your bytes. π‘
π§ DESCRIPTION π§
so this version of the function will take a PM reference to the slave device. yes, this version β the PM-referencing one. noted. π
β οΈ important caveat bestie, do not skip this: if the message crosses a page boundary, each page will be transferred under a separate invocation of the msg_lock. so likeβ¦ multiple lock grabs, one per page. no cap, that's how it goes. π
π SEE ALSO π
it's all in the Kernel file ./drivers/soundwire/bus.c β go read the source, it's giving iconic. and while you're there, here's the whole friend group:
sdw_bus_master_add(9)sdw_bus_master_delete(9)sdw_transfer(9)sdw_show_ping_status(9)sdw_transfer_defer(9)sdw_nread_no_pm(9)sdw_nwrite_no_pm(9)sdw_write_no_pm(9)sdw_read_no_pm(9)sdw_nwrite(9)sdw_read(9)sdw_write(9)sdw_bus_prep_clk_stop(9)sdw_bus_clk_stop(9)sdw_bus_exit_clk_stop(9)sdw_handle_slave_status(9)
they all ate, fr fr. π«Ά
mwah π that's the page!! this little beauty lives in ./drivers/soundwire, dated October 2026, and you can cite it as sdw_nread(9) forever and ever. go read some registers bestie, you got this πβ¨π
π¦ 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