__pte_alloc_one_kernel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __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 β€” the mm_struct of 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 πŸ¦‹


xoxo, bestie πŸ’– β€” source/version: ./include/asm-generic; date: October 2026; page: __pte_alloc_one_kernel(9). Slay responsibly. ✨

πŸ“¦ where this page comes from