pci_epc_add_epf(9)
π pci_epc_add_epf π
okay so bestie, welcome to the Kernel API Manual β this one's called pci_epc_add_epf (that's the 9th section, iykyk) and it's literally about binding a PCI endpoint function to an endpoint controller. no cap, that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
pci_epc_add_epf β bind a PCI endpoint function to an endpoint controller π
πΈ SYNOPSIS πΈ
int pci_epc_add_epf (struct pci_epc *epc , struct pci_epf *epf , enum
pci_epc_interface_type type );
like, it returns an int, bestie. that's the tea β
π¦ ARGUMENTS π¦
epcβ the EPC device that the endpoint function should get added to. it's the main character here πepfβ the endpoint function that's being added. the one getting bound, periodt πtypeβ tells you whether the EPC is connected to the primary or the secondary interface of the EPF. pick your lane β¨
π DESCRIPTION π
so a PCI endpoint device can have one or more functions β like, it's not a one-function-only situation, she's multifaceted π§ in the case of PCIe, the spec allows up to 8 PCIe endpoint functions. iconic honestly.
invoke pci_epc_add_epf to add a PCI endpoint function to an endpoint controller. that's it, that's the function π
π₯ SEE ALSO π₯
kernel file ./drivers/pci/endpoint/pci-epc-core.c β and literally the whole epc core squad, go check them out:
pci_epc_put(9)pci_epc_get(9)pci_epc_get_first_free_bar(9)pci_epc_get_next_free_bar(9)pci_epc_get_features(9)pci_epc_get_aux_resources_count(9)pci_epc_get_aux_resources(9)pci_epc_stop(9)pci_epc_start(9)pci_epc_raise_irq(9)pci_epc_map_msi_irq(9)pci_epc_get_msi(9)pci_epc_set_msi(9)pci_epc_get_msix(9)pci_epc_set_msix(9)pci_epc_unmap_addr(9)pci_epc_map_addr(9)pci_epc_mem_map(9)pci_epc_mem_unmap(9)pci_epc_clear_bar(9)pci_epc_set_bar(9)pci_epc_bar_size_to_rebar_cap(9)pci_epc_write_header(9)pci_epc_remove_epf(9)pci_epc_linkup(9)pci_epc_linkdown(9)pci_epc_init_notify(9)pci_epc_notify_pending_init(9)pci_epc_deinit_notify(9)pci_epc_bus_master_enable_notify(9)pci_epc_destroy(9)__pci_epc_create(9)__devm_pci_epc_create(9)
k that's the whole page bestie, no notes π
and that's a wrap, babe! π this lil beauty lives in ./drivers/pci/endpoint, dropped as part of the Kernel API Manual, dated October 2026 β go off, pci_epc_add_epf(9) π
β¨π
π¦ 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