pci_vfs_assigned(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie, welcome to pci_vfs_assigned(9) from the Kernel API Manual β€” we're doing VF math and it's giving kernel-core cute. 🫢

πŸŽ€ NAME πŸŽ€

pci_vfs_assigned β€” returns the number of VFs that are assigned to a guest. That's it. That's the function. iconic. ✨

✨ SYNOPSIS ✨

int pci_vfs_assigned (struct pci_dev *dev );

🌸 ARGUMENTS 🌸

  • dev β€” the PCI device. Literally the PCI device, bestie; that's the whole input. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So it returns the number of VFs belonging to this device that are assigned to a guest. Easy. Slay.

If the device is not a physical function, it returns 0. No cap.

Heads up: not a physical function = 0. That's the rule, and the function is sticking to it. πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/iov.c is the home base, and the whole linked-page squad is:


Cute sign-off: source ./drivers/pci, version/date October 2026, page pci_vfs_assigned(9) β€” mwah, bye bestie πŸ’‹πŸŽ€

πŸ“¦ where this page comes from