sdw_master_rt_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ sdw_master_rt_free(9) πŸŽ€

okay so this one is from the Kernel API Manual, and it's giving β€œcleanup era” ✨ like bestie, we are freeing runtime handles and being very mindful about locks. let's go πŸ’…


🌸 NAME 🌸

sdw_master_rt_free - Free Master runtime handle


✨ SYNOPSIS ✨

void sdw_master_rt_free (struct sdw_master_runtime *m_rt , struct sdw_stream_runtime *stream );

🫢 ARGUMENTS 🫢

  • m_rt β€” Master runtime node. that's the main-character node, iykyk.
  • stream β€” Stream runtime handle.

πŸ’– DESCRIPTION πŸ’–

okay so real talk: this function is to be called with bus_lock held πŸ”’ do not skip that part, bestie. It frees the Master runtime handle and associated Slave(s) runtime handle. that's the whole slay.

and here's the little gotcha: if this is called first, then sdw_slave_rt_free will have no effect, because the Slave(s) runtime handle would already be freed up πŸ’€ like, it already left the group chat.

fr fr: call it with bus_lock held. and if this one goes first, sdw_slave_rt_free is gonna have no effect since the Slave(s) runtime handle is already freed up.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/soundwire/stream.c β€” and the whole friend group is:


xoxo from the Kernel API Manual bestie πŸ’– β€” source/version: ./drivers/soundwire, date: October 2026.

πŸ“¦ where this page comes from