iommu_alloc_pages_sz(9)
π iommu_alloc_pages_sz(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy here β and today's main character is iommu_alloc_pages_sz, a little function that's out here handing you pages like it's Oprah. π
β¨ NAME β¨
iommu_alloc_pages_sz β the way it allocates a zeroed page of a given size from a specific NUMA node. that's it, that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
void * iommu_alloc_pages_sz (gfp_t gfp , size_t size );
literally just two arguments, no cap. look at her go π«Ά
π¦ ARGUMENTS π¦
gfpβ the buddy allocator flags, iykyk. this is you telling the allocator how you want the memory served. πsizeβ the memory size to allocate, and heads up bestie, this is rounded up to a power of 2. so don't come crying to me if you asked for something weird and got a nicer number back. π
π§ DESCRIPTION π§
it returns the virtual address of the allocated page. that's the tea. you give it flags and a size, you get back a virtual address, periodt. π
π₯ SEE ALSO π₯
- the kernel file
./drivers/iommu/iommu-pages.h - struct
ioptdesc(9) iommu_pages_list_add(9)iommu_pages_list_splice(9)iommu_pages_list_empty(9)
like, go read them, they're all in the same friend group fr fr π«Ά
ngl this one's short and sweet β no dangerous behaviour flagged in the source, no environment variables, no exit statuses, just vibes and a virtual address. π
mwah, that's a wrap! this page lives under ./drivers/iommu and it's dated October 2026, so mark your calendar bestie ποΈπ
β signed, sealed, delivered, and slaying β¨ππ¦
π¦ 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