STRUCT VIRTQUEUE_INFO(9)
β¨ struct virtqueue_info(9) β¨
okay so bestie, welcome to the Kernel API Manual β this is the page for struct virtqueue_info, and honestly? it's giving "small struct, big responsibilities" π
πΈ NAME πΈ
struct virtqueue_info β literally the info for a virtqueue that gets passed to find_vqs(). that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
struct virtqueue_info {
const char *name;
vq_callback_t *callback;
bool ctx;
};
like, three members. tiny. iconic. she does exactly what she needs to do and nothing more π
π Members π
okay so let's go member by member, because each one has main character energy in her own way:
nameβ the virtqueue description. it's used mainly for debugging, so like, it's the little name tag she wears at the party π·οΈ and yeah β set it toNULLfor a virtqueue that's unused by the driver. no name tag, no party, no problem.callbackβ a callback to invoke on a used buffer notification. think of it as her phone number for when something's ready π and again:NULLfor a virtqueue that does not need a callback. she's off duty, don't call her.ctxβ whether to maintain an extra context per virtqueue. yes/no, true/false, do we keep extra context or not π«Ά that's the whole question.
ngl bestie,nameandcallbackboth beingNULL-able is very much "I'm flexible, I contain multitudes" and we love that for her π
π₯ SEE ALSO π₯
go read these next, they're all connected, iykyk:
- the Kernel file
./include/linux/virtio_config.h struct virtio_config_ops(9)struct virtio_map_ops(9)__virtio_test_bit(9)__virtio_set_bit(9)__virtio_clear_bit(9)virtio_has_feature(9)virtio_has_dma_quirk(9)virtio_synchronize_cbs(9)virtio_device_ready(9)virtqueue_set_affinity(9)
π one last thing bestie β this whole page lives in./include/linux, and it's dated October 2026, and the page itself isstruct virtqueue_info(9). so yeah, go forth, pass your info tofind_vqs(), and slay β¨π π¦
π¦ 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