pci_epf_add_vepf(9)
π pci_epf_add_vepf β the Kernel API Manual page, bestie edition π
okay so this is pci_epf_add_vepf(9) from the Kernel API Manual and it's literally the glow-up moment where a virtual endpoint function gets introduced to its physical bestie π«Ά
β¨ NAME β¨
pci_epf_add_vepf β associate a virtual EP function to a physical EP function π
likeβ¦ matchmaker energy, but for endpoint functions π
πΈ SYNOPSIS πΈ
int pci_epf_add_vepf(struct pci_epf *epf_pf, struct pci_epf *epf_vf);
returns an int, takes two struct pci_epf * pointers, no cap π§
π¦ ARGUMENTS π¦
epf_pfβ the physical EP function β i.e. the one the virtual EP function should be associated with π (this is the main character that's hosting)epf_vfβ the virtual EP function that's being added π« (this is the one sliding into the group chat)
π DESCRIPTION π
so here's the vibe check: a physical endpoint function can be associated with multiple virtual endpoint functions. not just one. multiple. it's giving popular girl with a whole squad π
invoke pci_epf_add_vepf to add a virtual PCI endpoint function to a physical PCI endpoint function. that's it, that's the task, and it absolutely ate π
lowkey important: the physical function is the one doing the collecting here, and the virtual one is the one being added. don't mix them up bestie π
π₯ SEE ALSO π₯
kernel file ./drivers/pci/endpoint/pci-epf-core.c is where the magic lives β¨ and here's the whole friend group, fr fr:
pci_epf_unbind(9)pci_epf_bind(9)pci_epf_remove_vepf(9)pci_epf_free_space(9)pci_epf_alloc_space(9)pci_epf_assign_bar_space(9)pci_epf_unregister_driver(9)__pci_epf_register_driver(9)pci_epf_destroy(9)pci_epf_create(9)pci_epf_align_inbound_addr(9)
and that's the whole page bestie!! π this one came from ./drivers/pci/endpoint and it's dated October 2026 β go forth and associate those endpoint functions, ily, mwah πππ¦
π¦ 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