pmd_free_pte_page(9)
π 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 actualpmd_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
reserve_top_address(9)p4d_set_huge(9)p4d_clear_huge(9)pud_set_huge(9)pmd_set_huge(9)pud_clear_huge(9)pmd_clear_huge(9)
xoxo, your kernel bestie π β source/version: ./arch/x86/mm, date: October 2026 π
π¦ 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