STRUCT VIRTIO_SND(9)
β¨ NAME β¨
okay bestie, welcome to the struct virtio_snd(9) page from the Kernel API Manual π and it's literally all about the VirtIO sound card device.
struct virtio_snd β VirtIO sound card device. that's the name, that's the vibe, periodt π
πΈ SYNOPSIS πΈ
okay so here's the whole struct in all its glory β character for character, no edits, no cap:
struct virtio_snd {
struct virtio_device *vdev;
struct virtio_snd_queue queues[VIRTIO_SND_VQ_MAX];
struct snd_card *card;
struct list_head ctl_msgs;
struct virtio_snd_event *event_msgs;
struct list_head pcm_list;
struct virtio_jack *jacks;
u32 njacks;
struct virtio_pcm_substream *substreams;
u32 nsubstreams;
struct virtio_snd_chmap_info *chmaps;
u32 nchmaps;
struct virtio_snd_ctl_info *kctl_infos;
struct virtio_kctl *kctls;
u32 nkctls;
};
π Members π
these are the little fields inside the struct, and yes every single one is getting its moment, because we don't skip members in this house π«Ά
vdevβ Underlying virtio device. literally the device underneath, slay β¨queuesβ Virtqueue wrappers. the wrappers, iconic πcardβ ALSA sound card. your ALSA sound card, main character energy πctl_msgsβ Pending control request list. the list of pending control requests, no cap πevent_msgsβ Device events. device events, periodt π¦pcm_listβ VirtIO PCM device list. the VirtIO PCM device list, yup πΈjacksβ VirtIO jacks. VirtIO jacks!! πnjacksβ Number of jacks. the number of jacks, counting them fr fr π’substreamsβ VirtIO PCM substreams. VirtIO PCM substreams, highkey obsessed π₯nsubstreamsβ Number of PCM substreams. number of PCM substreams, got it bestie πchmapsβ VirtIO channel maps. VirtIO channel maps, map it out πnchmapsβ Number of channel maps. number of channel maps, yes βkctl_infosβ VirtIO control element information. VirtIO control element information, info dump but make it cute πkctlsβ VirtIO control elements. VirtIO control elements, they're giving control πnkctlsβ Number of control elements. number of control elements, final count π
π¦ SEE ALSO π¦
go peek at these, iykyk:
- Kernel file
./sound/virtio/virtio_card.hβstruct virtio_snd_queue(9),struct virtio_kctl(9)
okay that's it bestie!! source ./sound/virtio, date October 2026, and the struct virtio_snd(9) tag β mwah πβ¨
π¦ 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