virtsnd_ctl_msg_send(9)
π
virtsnd_ctl_msg_send(9) β Kernel API Manual β¨
π NAME π
virtsnd_ctl_msg_send β send a control message. Thatβs the whole assignment, bestie: control message goes send. Slay.
π SYNOPSIS π
int virtsnd_ctl_msg_send (struct virtio_snd *snd , struct virtio_snd_msg
*msg , struct scatterlist *out_sgs , struct scatterlist *in_sgs , bool
nowait );
πΈ ARGUMENTS πΈ
sndβ VirtIO sound device. Like, the device youβre doing the thing with.msgβ Control message. The message itself, no cap.out_sgsβ Additional sg-list to attach to the request header (may beNULL). Yes,NULLis allowed here.in_sgsβ Additional sg-list to attach to the response header (may beNULL). Also allowed to beNULL, periodt.nowaitβ Flag indicating whether to wait for completion. Thatβs the whole vibe of this flag.
π¦ CONTEXT π¦
Any context β literally any. It takes and releases the control queue spinlock. It may sleep if nowait is false, so thatβs the sleepy lil detail to keep in your brain π§ β¨.
π₯ RETURN π₯
0 on success, -errno on failure. Clean and simple, iykyk.
π SEE ALSO π
- Kernel file
./sound/virtio/virtio_ctl_msg.c struct virtio_snd_msg(9)virtsnd_ctl_msg_ref(9)virtsnd_ctl_msg_unref(9)virtsnd_ctl_msg_request(9)virtsnd_ctl_msg_response(9)virtsnd_ctl_msg_alloc(9)virtsnd_ctl_msg_complete(9)virtsnd_ctl_msg_cancel_all(9)virtsnd_ctl_query_info(9)virtsnd_ctl_notify_cb(9)
mwah π and thatβs the page, bestie! Source/version: ./sound/virtio; date: October 2026; page name: virtsnd_ctl_msg_send(9). Obsessed π«Άπ
π¦ 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