pci_epf_free_space(9)
β¨ pci_epf_free_space(9) β¨
okay so this is a page from the Kernel API Manual (section 9, bestie, the kernel-internals section π«Ά) and it's about pci_epf_free_space β the little cleanup queen of the PCI endpoint world π
πΈ NAME πΈ
pci_epf_free_space β free the allocated PCI EPF register space
like, you allocated it, now let it go π¦
π SYNOPSIS π
void pci_epf_free_space (struct pci_epf *epf , void *addr , enum
pci_barno bar , enum pci_epc_interface_type type );
four args, returns void, no notes, no drama π
π ARGUMENTS π
epfβ the EPF device from whom to free the memory (yes, from whom β very polite of you to ask properly π©)addrβ the virtual address of the PCI EPF register spacebarβ the BAR number corresponding to the register spacetypeβ Identifies if the allocated space is for primary EPC or secondary EPC (iykyk π)
β¨ DESCRIPTION β¨
Invoke to free the allocated PCI EPF register space.
that's literally it, no cap. you call it, the space goes bye-bye, main character cleanup energy π§Ήπ
π SEE ALSO π
Kernel file ./drivers/pci/endpoint/pci-epf-core.c β and the whole friend group:
pci_epf_unbind(9)pci_epf_bind(9)pci_epf_add_vepf(9)pci_epf_remove_vepf(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)
the alloc one is right there next to the free one btw, they're giving matched set ππ―
lowkey iconic that pci_epf_alloc_space(9) exists and this page is its other half β you literally cannot have one without the other, periodt.
and that's the vibe check, bestie π this page lives in ./drivers/pci/endpoint (the source tree folder, slay) and the manual dates it October 2026 β so go forth, free your register space, and remember: no leaks, no tears, only πΈ impeccable memory management πΈ π«Ά
π¦ 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