virtqueue_set_affinity(9)
πΈ NAME πΈ
Okay so welcome to virtqueue_set_affinity(9) β straight outta the Kernel API Manual, bestie. This one is all about setting affinity for a virtqueue. Very demure, very kernel-coded. π
β¨ SYNOPSIS β¨
int virtqueue_set_affinity (struct virtqueue *vq , const struct cpumask
*cpu_mask );
π ARGUMENTS π
vqβ the virtqueue. The main character of this function, lowkey.cpu_maskβ the cpu mask. The vibe map for where things should go. π¦
π DESCRIPTION π
Real talk: this function is best-effort. Like, it tries to set the affinity hint, but it may not actually get set β and that's not a skill issue, it's because of config support, irq type, and sharing. So yeah, it's giving "I'll do my best" energy, not "guaranteed slay" energy. π
Important caveat, bestie: the affinity hint may not be set. Do not come for this function if the hint doesn't stick β it literally warned you. π
π₯ SEE ALSO π₯
Kernel file ./include/linux/virtio_config.h and the whole friend group:
struct virtqueue_info(9)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)
And that's the page, periodt. Shoutout to ./include/linux, October 2026, and the virtqueue_set_affinity(9) footer energy β mwah, iykyk. π«Άπ
π¦ 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