sof_ipc_send_msg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sof_ipc_send_msg(9) πŸ’…

okay so bestie, we're in the Kernel API Manual section today and the star of the show is sof_ipc_send_msg β€” literally the generic function that preps and sends one (1) IPC message. that's it, that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

int sof_ipc_send_msg (struct snd_sof_dev *sdev , void *msg_data , size_t
msg_bytes , size_t reply_bytes );

yes she takes four args and returns an int, no cap. 🫢


🌸 ARGUMENTS 🌸

  • sdev β€” pointer to the SOF core device struct. like, the whole device. the main character. πŸ‘‘
  • msg_data β€” pointer to a message to send. this is the actual message going out the door. ✨
  • msg_bytes β€” number of bytes in the message. how big is she? πŸ”₯
  • reply_bytes β€” number of bytes available for the reply. important lore: the buffer for the reply data is not passed to this function β€” the available size is just, like, information for the reply handling functions. iykyk. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

on success the function returns 0. otherwise it returns a negative error number. 😭 that's the whole description fr fr, she's short and to the point.


⭐ NOTE ⭐

higher level sdev->ipc->tx_mutex must be held to make sure that transfers are synchronized. do not skip this, bestie β€” it's giving "i forgot the mutex" and that's not the energy we want. πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./sound/soc/sof/ipc.c β€” go read her, she has the receipts. πŸ“

that's the page!! 🧚 sign-off time: this one lives in ./sound/soc/sof, dated October 2026, and it was iconic of her honestly. periodt. πŸ’œπŸŽ€

πŸ“¦ where this page comes from