pmd_free_pte_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pmd_free_pte_page(9) πŸŽ€

okay so bestie, this page is from the Kernel API Manual, and it’s giving β€œclean up this page-table situation” energy. let’s get into it πŸ’…


✨ NAME ✨

pmd_free_pte_page β€” clear the PMD entry and free the PTE page. literally what it says on the tin, no cap.

πŸ¦‹ SYNOPSIS πŸ¦‹

int pmd_free_pte_page (pmd_t *pmd , unsigned long addr );

πŸ’… ARGUMENTS πŸ’…

  • pmd β€” pointer to the PMD. yes, the actual pmd_t *, bestie 🫢
  • addr β€” virtual address associated with PMD.

🌸 CONTEXT 🌸

context check, queen: the PMD range has been unmapped and the TLB purged. that’s the whole vibe going in ✨

πŸŽ€ RETURN πŸŽ€

1 if clearing the entry succeeded, 0 otherwise. that’s it, that’s the return value πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./arch/x86/mm/pgtable.c


xoxo, your kernel bestie πŸ’œ β€” source/version: ./arch/x86/mm, date: October 2026 🌈

πŸ“¦ where this page comes from