pci_iov_vf_bar_get_sizes(9)
π pci_iov_vf_bar_get_sizes β a Kernel API Manual moment
okay so bestie, welcome to the pci_iov_vf_bar_get_sizes(9) page β¨ this is the Kernel API Manual and we're literally about to make VF BAR sizes make sense, no cap π
πΈ NAME πΈ
pci_iov_vf_bar_get_sizes β get VF BAR sizes allowing to create up to num_vfs π«Ά
like, it tells you which VF BAR sizes you can work with so you can spin up as many as num_vfs VFs, periodt π
β¨ SYNOPSIS β¨
u32 pci_iov_vf_bar_get_sizes (struct pci_dev *dev , int resno , int
num_vfs );
one function, three args, that's the whole vibe π
π¦ ARGUMENTS π¦
devβ the PCI device πresnoβ the resource number π’num_vfsβ number of VFs π
π DESCRIPTION π
Get the sizes of a VF resizable BAR that can accommodate num_vfs within the currently assigned size of the resource resno. π§
translation: it looks at the size resno is rockin' right now and tells you which resizable BAR sizes are big enough to fit num_vfs in there. iconic behavior honestly π
β RETURN β
A bitmask of sizes in format defined in the spec (bit 0=1MB, bit 31=128TB). π₯
so like, bit 0 = 1MB and bit 31 = 128TB, that's the spec's format, not mine, iykyk π
π SEE ALSO π
Kernel file ./drivers/pci/iov.c plus the whole friend group:
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_vfs_assigned(9)pci_sriov_set_totalvfs(9)pci_sriov_get_totalvfs(9)pci_sriov_configure_simple(9)pci_iov_vf_bar_set_size(9)
π reminder bestie: this page is from./drivers/pci, dated October 2026, and it's filed underpci_iov_vf_bar_get_sizes(9)β go read the whole squad, they all ate π β¨π«Ά
π¦ 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