pci_vfs_assigned(9)
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:
pci_iov_get_pf_drvdata(9)pci_iov_init(9)pci_iov_release(9)pci_iov_remove(9)pci_iov_update_resource(9)pci_sriov_resource_alignment(9)pci_restore_iov_state(9)pci_vf_drivers_autoprobe(9)pci_iov_bus_range(9)pci_enable_sriov(9)pci_disable_sriov(9)pci_num_vf(9)pci_sriov_set_totalvfs(9)pci_sriov_get_totalvfs(9)pci_sriov_configure_simple(9)pci_iov_vf_bar_set_size(9)pci_iov_vf_bar_get_sizes(9)
Cute sign-off: source ./drivers/pci, version/date October 2026, page pci_vfs_assigned(9) β mwah, bye bestie ππ
π¦ 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