sof_ipc_send_msg(9)
π 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
- 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