pci_epc_mem_init(9)
β¨ pci_epc_mem_init(9) β¨
okay so bestie, welcome to the Kernel API Manual page for pci_epc_mem_init π
this one's short and sweet, so we can absolutely get you fluent in like two minutes. no cap.
πΈ NAME πΈ
pci_epc_mem_init β literally "Initialize the pci_epc_mem structure" π that's the whole vibe check, she sets up a pci_epc_mem struct and she does it well.
π¦ SYNOPSIS π¦
int pci_epc_mem_init (struct pci_epc *epc , phys_addr_t base , size_t
size , size_t page_size );
she returns an int, bestie β take note π
π ARGUMENTS π
epcβ the EPC device that invokedpci_epc_mem_initπ«Ά like, the one who called her first. main character energy fr.baseβ Physical address of the window region β¨ the starting point, the origin story.sizeβ Total Size of the window region π the whole thing, not a fraction, the total.page_sizeβ Page size of the window region π every window region has a page size and this is hers.
π§ DESCRIPTION π§
so the move here: invoke pci_epc_mem_init to initialize a single pci_epc_mem structure π« and what's that structure for, you ask? it's the one used by the endpoint functions to allocate memory for mapping the PCI host memory ππ₯ like, that's literally her job. one structure, properly initialized, endpoint functions do their little allocations, host memory gets mapped. slay.
key word is single β if you've got multiple of these bad boys to set up, go look at pci_epc_multi_mem_init(9) down in SEE ALSO, iykyk π
π SEE ALSO π
- Kernel file
./drivers/pci/endpoint/pci-epc-mem.cβ the source, the mothership, go read her π pci_epc_mem_get_order(9)pci_epc_multi_mem_init(9)pci_epc_mem_exit(9)pci_epc_mem_alloc_addr(9)pci_epc_mem_free_addr(9)
π friendly reminder that this is kernel-space, bestie β the int return is not decorative, check it. π
and that's the page!! brought to you from ./drivers/pci/endpoint, dated October 2026, under the Kernel API Manual πΈ go forth and initialize your structures, queen ππ
π¦ 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