__pte_alloc_one_kernel(9)
πΈ __pte_alloc_one_kernel(9) β Kernel API Manual πΈ
Okay bestie, we're doing the Kernel API Manual page for __pte_alloc_one_kernel(9) and it's giving very specific kernel-page-table energy. Let's go. π
β¨ NAME β¨
__pte_alloc_one_kernel β allocate memory for a PTE-level kernel page table
π SYNOPSIS π
pte_t * __pte_alloc_one_kernel (struct mm_struct *mm );
π«Ά ARGUMENTS π«Ά
mmβ themm_structof the current context.
π DESCRIPTION π
This one is meant for architectures that need anything beyond simple page allocation.
Like, it's not the "just do the simplest possible page allocation" situation β it's specifically for architectures that need anything beyond that. That's the whole note. π
π₯ RETURN π₯
You get back a pointer to the allocated memory, or NULL on error.
π¦ SEE ALSO π¦
- Kernel file
./include/asm-generic/pgalloc.hβpte_alloc_one_kernel(9),pte_free_kernel(9),__pte_alloc_one(9),pte_alloc_one(9),pte_free(9),pmd_alloc_one(9),pud_alloc_one(9).
xoxo, bestie π β source/version: ./include/asm-generic; date: October 2026; page: __pte_alloc_one_kernel(9). Slay responsibly. β¨
π¦ 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