STRUCT VIRTIO_PCM(9)
π struct virtio_pcm(9) β your new fave kernel API manual, bestie π
okay so you're reading the manual page for struct virtio_pcm, from the Kernel API Manual (yes that one, section 9, we love her). She's the VirtIO PCM deviceβ¨ β literally the lil struct that holds your audio life together. Let's get into it.
π NAME π
struct virtio_pcm β the VirtIO PCM device. that's it, that's the vibe. it's giving "audio but make it virtualized" π
β¨ SYNOPSIS β¨
here's the whole glow-up, no cap, copy it exactly:
struct virtio_pcm {
struct list_head list;
u32 nid;
struct snd_pcm *pcm;
struct virtio_pcm_stream streams[SNDRV_PCM_STREAM_LAST + 1];
};
likeβ¦ iconic. four members, zero notes. π«Ά
πΈ Members πΈ
okay bestie, let's do a vibe check on every single field, one by one, because we do NOT skip members in this house:
listβ the VirtIO PCM list entry. she's the linkage, the connective tissue, the "who's in my group chat" energy πnidβ the function group node identifier. au32. it's her ID, her legal name, her passport πͺͺpcmβ the kernel PCM device (that's astruct snd_pcm *). the main character, honestly πstreamsβ the VirtIO PCM streams, aka playback AND capture, living in an array of sizeSNDRV_PCM_STREAM_LAST + 1. both directions, because she's versatile like that π¦
not me being obsessed with a struct that justβ¦ holds four things. and yet. π₯
π SEE ALSO π
go read these next, fr fr, iykyk:
- the kernel file
./sound/virtio/virtio_pcm.h struct virtio_pcm_substream(9)struct virtio_pcm_stream(9)
they're all in the same clique, you'll love them π
π and that's the whole page! mwah! this one lives in ./sound/virtio, October 2026 edition, and it slayed. go forth and read the header file, bestie β 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