virtio_pci_find_capability(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the VIRTIO_PCI_CAP_* value we seek ✨
  • ioresource_types β€” IORESOURCE_MEM and/or IORESOURCE_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