virtio_has_feature(9)
π NAME π
okay so welcome to the virtio_has_feature(9) page from the Kernel API Manual π this is the helper that determines if this device has this feature β that's the whole assignment, and she ate. β¨
β¨ SYNOPSIS β¨
bool virtio_has_feature (const struct virtio_device *vdev , unsigned int fbit );
that's the exact signature, bestie β a bool, a const struct virtio_device *, and an unsigned int. no cap. π
π ARGUMENTS π
vdevβ the device, aka the main character you're checking on π«Άfbitβ the feature bit, the exact little flag you're asking about β
π SEE ALSO π
the kernel file is ./include/linux/virtio_config.h, and the whole friend group is right here:
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_dma_quirk(9)virtio_synchronize_cbs(9)virtio_device_ready(9)virtqueue_set_affinity(9)
that's the whole page, fr fr β cute, compact, and absolutely iconic. π
sign-off: from ./include/linux, in the Kernel API Manual, dated October 2026 β virtio_has_feature(9) said goodnight πβ¨
π¦ 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