PCI_DRIVER_..._DEVICE_VFIO(9)
okay bestie, welcome to the PCI_DRIVER_..._DEVICE_VFIO(9) page from the Kernel API Manual π
β¨ β the header keeps it abbreviated, but the actual main character is PCI_DRIVER_OVERRIDE_DEVICE_VFIO. itβs giving tiny macro, big VFIO energy, and weβre getting into every single detail. π«Ά
πΈ NAME πΈ
PCI_DRIVER_OVERRIDE_DEVICE_VFIO β a macro used to describe a VFIO "driver_override" PCI device. π
β¨ SYNOPSIS β¨
PCI_DRIVER_OVERRIDE_DEVICE_VFIO (vend , dev );
thatβs the whole call, no cap. π
π¦ ARGUMENTS π¦
vendβ the 16 bit PCI Vendor ID πdevβ the 16 bit PCI Device ID π
π DESCRIPTION π
This macro is used to create a struct pci_device_id that matches a specific device. the subvendor and subdevice fields will be set to PCI_ANY_ID, and the driver_override will be set to PCI_ID_F_VFIO_DRIVER_OVERRIDE. thatβs the whole magic trick β¨ β specific-device matching with the VFIO override vibe baked in.
π₯ SEE ALSO π₯
Kernel file ./include/linux/pci.h is right there, and the whole reference squad is:
- Kernel file
./include/linux/pci.h enum pci_interrupt_pin(9)pci_channel_state_t(9)pci_is_bridge(9)pci_is_vga(9)pci_is_display(9)struct pci_driver(9)PCI_DEVICE(9)PCI_DEVICE_DRIVER_OVERRIDE(9)PCI_DEVICE_SUB(9)PCI_DEVICE_CLASS(9)PCI_VDEVICE(9)PCI_VDEVICE_SUB(9)PCI_DEVICE_DATA(9)pcie_capability_clear_and_set_word(9)pci_bus_for_each_resource(9)module_pci_driver(9)builtin_pci_driver(9)pci_irq_type(9)pci_irqd_intx_xlate(9)pci_resource_is_io(9)pci_resource_is_mem(9)pci_pcie_cap(9)pci_is_pcie(9)pcie_caps_reg(9)pci_pcie_type(9)pcie_find_root_port(9)pci_vpd_alloc(9)pci_vpd_find_id_string(9)pci_vpd_find_ro_info_keyword(9)pci_vpd_check_csum(9)pci_ari_enabled(9)pci_is_thunderbolt_attached(9)
go off, read the whole squad, iykyk ππ
mwah π this cutie came from the source/version ./include/linux, dated October 2026, and the footer tag is still PCI_DRIVER_..._DEVICE_VFIO(9) β 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