epf_ntb_epc_...te_interface(9)
β¨ epf_ntb_epc_create_interface(9) β¨
okay so bestie, you're reading the Kernel API Manual β the actual grown-up kernel docs β and we're about to make a whole NTB EPC interface out of nothing. it's giving "networking but make it PCIe" π
πΈ NAME πΈ
epf_ntb_epc_create_interface β the one that creates and inits the NTB EPC interface π«Ά
π SYNOPSIS π
int epf_ntb_epc_create_interface (struct epf_ntb *ntb , struct pci_epc
*epc , enum pci_epc_interface_type type );
like, that's the whole vibe. it returns an int, bestie. take it or leave it β¨
π¦ ARGUMENTS π¦
ntbβ the NTB device that's out here facilitating communication between HOST1 and HOST2. yes, both of them. it's the main character that lets the two hosts talk πepcβ thestruct pci_epcthat a particular NTB interface should be associated with. so like, the one it gets matched up with πtypeβ which interface we're doing:PRIMARYinterface orSECONDARYinterface. choose ur fighter π
π DESCRIPTION π
so what actually happens? not me about to explain it: you allocate memory for the NTB EPC interface and then you initialize it. that's it. that's the whole job. iconic, honestly π₯
π SEE ALSO π
the kernel file, which lives right here:
./drivers/pci/endpoint/functions/pci-epf-ntb.c
and the rest of the squad β all of these are literally besties, go read them too π«Ά
epf_ntb_link_up(9)epf_ntb_configure_mw(9)epf_ntb_teardown_mw(9)epf_ntb_configure_msi(9)epf_ntb_configure_msix(9)epf_ntb_configure_db(9)epf_ntb_teardown_db(9)epf_ntb_cmd_handler(9)epf_ntb_peer_spad_bar_clear(9)epf_ntb_peer_spad_bar_set(9)epf_ntb_config_sspad_bar_clear(9)epf_ntb_config_sspad_bar_set(9)epf_ntb_config_spad_bar_free(9)epf_ntb_config_spad_bar_alloc(9)epf_ntb_config_spad_bar_alloc_interface(9)epf_ntb_free_peer_mem(9)epf_ntb_db_mw_bar_clear(9)epf_ntb_db_mw_bar_cleanup(9)epf_ntb_configure_interrupt(9)epf_ntb_alloc_peer_mem(9)epf_ntb_db_mw_bar_init(9)epf_ntb_epc_create(9)epf_ntb_init_epc_bar_interface(9)epf_ntb_init_epc_bar(9)epf_ntb_epc_init_interface(9)epf_ntb_epc_cleanup_interface(9)epf_ntb_epc_cleanup(9)epf_ntb_epc_init(9)epf_ntb_bind(9)epf_ntb_unbind(9)epf_ntb_add_cfs(9)epf_ntb_probe(9)
that's the whole page, bestie, you ate that π
from ./drivers/pci/endpoint/functions, dated October 2026 β ily, go write some kernel code π§π
π¦ 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