sdw_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sdw_write(9) β€” the kernel API glow-up πŸ’–

okay so you're in the <pink>sdw_write</pink> section of the Kernel API Manual (that's the manual name, bestie, we're in the kernel API docs rn) and honestly? iconic behaviour. this one's a little function with big main character energy β€” it writes to a SoundWire slave register. let's get into it ✨


✨ SYNOPSIS ✨

int sdw_write (struct sdw_slave *slave , u32 addr , u8 value );

that's the whole vibe. returns an int, takes three things, slays. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • slave β€” the SDW Slave. your little guy. the device you're talking to. 🫢
  • addr β€” the Register address, aka where you're poking. πŸ“
  • value β€” the Register value, aka what you're putting there. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, and it's literally the whole point: this version of the function will take a PM reference to the slave device. that's it, that's the note. PM reference = taken. no cap. πŸ”₯

ngl this is the with-PM flavour of the write β€” if you were looking for the no-PM one, keep scrolling down to SEE ALSO, bestie, it's right there πŸ‘€

🌸 SEE ALSO 🌸

the whole friend group, in order, no skipping:

like, the entire soundwire roster came to the function's birthday party 😭✨


<anything else>no wait i'm kidding, that's genuinely the whole page, it's a short one and we love that for it πŸ’€


okay bye bestie, go write that register πŸ’– the source is ./drivers/soundwire, it's dated October 2026, and this little gem is filed at sdw_write(9) β€” you know where to find it πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from