virtsnd_pcm_msg_complete(9)
๐ virtsnd_pcm_msg_complete(9) ๐
okay bestie, welcome to the Kernel API Manual page for virtsnd_pcm_msg_complete(9). This one is short, lowkey iconic, and very โknow what it does and move on,โ so letโs get into it. ๐ซถโจ
โจ NAME โจ
virtsnd_pcm_msg_completeโ Complete an I/O message. Thatโs the whole assignment, and it ate. ๐
๐ธ SYNOPSIS ๐ธ
void virtsnd_pcm_msg_complete (struct virtio_pcm_msg *msg , size_t
written_bytes );
๐ ARGUMENTS ๐
msgโ the I/O message. like, the message in question, bestie. ๐written_bytesโ the number of bytes written to the message. no cap. ๐ข
๐ DESCRIPTION ๐
okay so completion of the message means the elapsed period. Thatโs the literal vibe. If transmission is allowed, then each completed message is immediately placed back at the end of the queue. Immediately. Back of the queue. not me being obsessed with queue behavior, but here we are. ๐ฅ
For the playback substream, written_bytes is equal to sizeof(msg->status). periodt. ๐ง
For the capture substream, written_bytes is equal to sizeof(msg->status) plus the number of captured bytes. Thatโs the math, and itโs giving exact. ๐งฎโจ
๐จ CONTEXT ๐จ
๐จ Interrupt context alert ๐จ โ this runs in interrupt context. It takes and releases the VirtIO substream spinlock. So like, respect the context, bestie. ๐
๐ SEE ALSO ๐
okay bestie, go read these too โ theyโre all part of the same little kernel friend group:
- Kernel file
./sound/virtio/virtio_pcm_msg.c struct virtio_pcm_msg(9)enum pcm_msg_sg_index(9)virtsnd_pcm_sg_num(9)virtsnd_pcm_sg_from(9)virtsnd_pcm_msg_alloc(9)virtsnd_pcm_msg_free(9)virtsnd_pcm_msg_send(9)virtsnd_pcm_msg_pending_num(9)virtsnd_pcm_notify_cb(9)virtsnd_pcm_tx_notify_cb(9)virtsnd_pcm_rx_notify_cb(9)virtsnd_pcm_ctl_msg_alloc(9)
mwah ๐ โ source/version: ./sound/virtio, date: October 2026, page: virtsnd_pcm_msg_complete(9). byeee ๐ซถโจ
๐ฆ 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