virtio_pci_find_capability(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual page for virtio_pci_find_capability (yes, the (9) one, iykyk π
) β this function is literally here to walk capabilities to find device info. Thatβs the whole assignment, periodt π
π¦ SYNOPSIS π¦
int virtio_pci_find_capability (struct pci_dev *dev , u8 cfg_type , u32
ioresource_types , int *bars );
πΈ ARGUMENTS πΈ
devβ the pci device π«Άcfg_typeβ theVIRTIO_PCI_CAP_*value we seek β¨ioresource_typesβIORESOURCE_MEMand/orIORESOURCE_IO. πbarsβ the bitmask of BARs π
π DESCRIPTION π
Returns offset of the capability, or 0. Thatβs the tea β β short, iconic, no cap π
π SEE ALSO π
The kernel file ./drivers/virtio/virtio_pci_modern_dev.c β go peek, bestie ππ₯
okay bye ily π«Ά this was the virtio_pci_find_capability(9) page from ./drivers/virtio, dated October 2026 πβ¨
π¦ 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