sdw_slave_rt_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sdw_slave_rt_free (9) β€” from the Kernel API Manual, bestie πŸ’–

Okay so picture this: it's a kernel API manual page, yeah? And this one's about a little function called sdw_slave_rt_free. Girl, the name literally spoils it β€” it frees the runtime handle for a Slave (or Slaves, plural, she's flexible ✨). It's from the SoundWire corner of the kernel, living its best life at ./drivers/soundwire, and we're gonna go through the whole thing together. No skips, no cap. 🫢


✨ NAME ✨

sdw_slave_rt_free β€” Free Slave(s) runtime handle 🌸

✨ SYNOPSIS ✨

void sdw_slave_rt_free (struct sdw_slave *slave , struct
sdw_stream_runtime *stream );

Like, that's the whole signature. void return, so she doesn't even give you a result back β€” she just does the thing and dips. πŸ’…

🌈 ARGUMENTS 🌈

Two args, both little icons in their own right:

  • slave β€” the Slave handle. Yep. That's the thing. πŸŽ€
  • stream β€” the Stream runtime handle. The other thing. πŸ¦‹

That's it, that's the roster. Short and iconic.

πŸ’… DESCRIPTION πŸ’…

So here's the one thing you actually need to internalize, bestie, because it's the entire description and it's non-negotiable:

This function is to be called with bus_lock held. πŸ”’

Not "you could", not "you might wanna" β€” it is to be called with bus_lock held. Periodt. So go grab that bus lock before you even think about calling her. Let's not be the reason something explodes. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

The whole group chat, fr fr β€” every single one of these is part of the same SoundWire saga, and yes, you're getting all of them, because I would never do you like that:

Also lowkey the kernel file ./drivers/soundwire/stream.c is where it all goes down, so πŸ‘€ there if you're nosy like me.


And that's the page, babe! πŸŽ€ She lives in ./drivers/soundwire, this particular drop is from October 2026, and the whole thing is filed under the Kernel API Manual β€” sdw_slave_rt_free(9), mwah. πŸ’– Go hold that bus lock. πŸ’œ

πŸ“¦ where this page comes from