ENUM PCM_MSG_SG_INDEX(9)
π enum pcm_msg_sg_index(9) β the kernel API manual glow-up
okay so bestie, this is the manual page for enum pcm_msg_sg_index(9), and honestly? it's a tiny little enum with main character energy, because it's literally the index values for the virtio_pcm_msg->sgs field in an I/O message. like that's the whole job. iconic. π
β¨ NAME β¨
enum pcm_msg_sg_index β the index values for the virtio_pcm_msg->sgs field in an I/O message. no cap, that's it, that's the vibe. π¦
πΈ SYNOPSIS πΈ
enum pcm_msg_sg_index {
PCM_MSG_SG_XFER ,
PCM_MSG_SG_STATUS ,
PCM_MSG_SG_DATA
};
look at her. three little members, all in a row, living their best life. π«Ά
π Constants π
the group chat members of this enum, one by one, no skipping, periodt:
PCM_MSG_SG_XFERβ the element containing avirtio_snd_pcm_xferstructure. that's her job, that's what she holds. πPCM_MSG_SG_STATUSβ the element containing avirtio_snd_pcm_statusstructure. status? she has it. π₯PCM_MSG_SG_DATAβ the first element containing a data buffer. not the second, not the third, the first. ooh and note that "first" is load-bearing, iykyk. β
π¦ SEE ALSO π¦
bestie, the lore goes deep, here's the whole friend group, don't lose a single one:
- the kernel file
./sound/virtio/virtio_pcm_msg.c struct virtio_pcm_msg(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_msg_complete(9)virtsnd_pcm_notify_cb(9)virtsnd_pcm_tx_notify_cb(9)virtsnd_pcm_rx_notify_cb(9)virtsnd_pcm_ctl_msg_alloc(9)
like?? twelve plus a struct?? she's connected fr fr. π
heads up bestie: every one of those references keeps its (9) suffix exactly as written β that's the section number, don't come for me. π
and that's the page! mwah π
from ./sound/virtio, dated October 2026, still serving enum pcm_msg_sg_index(9). go read it again if you need to, she's short and she knows it. π§πβ¨
π¦ 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