collapse_max_ptes_none(9)
π collapse_max_ptes_none π
okay so bestie, this is the Kernel API Manual page for collapse_max_ptes_none(9) β yes, we're in kernel land, and it's giving very specific mm energy. Don't panic, it's shorter than a group-chat argument. π«Ά
β¨ NAME β¨
collapse_max_ptes_none β calculates the maximum allowed empty PTEs or PTEs mapping the shared zeropage for the given collapse operation. That's the whole assignment, no cap. π
πΈ SYNOPSIS πΈ
unsigned int collapse_max_ptes_none (struct collapse_control *cc ,
struct vm_area_struct *vma , unsigned int order );
π¦ ARGUMENTS π¦
ccβ the collapse control struct, akastruct collapse_control *. It's literally the collapse control struct, so it's main-character energy by default. πvmaβ the vma to check for userfaultfd, akastruct vm_area_struct *. yes, we're checking that one. πorderβ the folio order being collapsed to (unsigned int). big folio energy. β¨
π₯ RETURN π₯
It returns the maximum number of empty/shared zeropage PTEs for the collapse operation. That's the number, periodt. π
π SEE ALSO π
Go peek at these, bestie:
- Kernel file
./mm/khugepaged.c struct khugepaged_scan(9)collapse_max_ptes_shared(9)collapse_max_ptes_swap(9)collapse_pte_mapped_thp(9)collapse_file(9)
Catch you later, bestie β this one's collapse_max_ptes_none(9) from source/version ./mm, dated October 2026. bye and slay πβ¨
π¦ 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