pci_epc_mem_get_order(9)
π pci_epc_mem_get_order(9) π
okay so bestie, this is straight from the Kernel API Manual and it's giving βtiny helper, big brain energyβ π§β¨
β¨ NAME β¨
pci_epc_mem_get_order β determine the allocation order of a memory size π
πΈ SYNOPSIS πΈ
int pci_epc_mem_get_order (struct pci_epc_mem *mem , size_t size );
π¦ ARGUMENTS π¦
memβ the address space of the endpoint controller, periodt πsizeβ the size for which you want to get the order β¨
π DESCRIPTION π
so basically this is get_order reimplemented for mem->page_size, because the generic get_order always gets the order with a constant PAGE_SIZE π like it refuses to be flexible, and this little icon steps in to handle it π
π₯ SEE ALSO π₯
- Kernel file:
./drivers/pci/endpoint/pci-epc-mem.cπ pci_epc_multi_mem_init(9)π«Άpci_epc_mem_init(9)βpci_epc_mem_exit(9)πpci_epc_mem_alloc_addr(9)πpci_epc_mem_free_addr(9)π
π that's the tea! this page comes from source/version ./drivers/pci/endpoint, dated October 2026, and it's pci_epc_mem_get_order(9) β mwah, slay π«Άπ
π¦ 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