collapse_max_ptes_swap(9)
β¨ collapse_max_ptes_swap(9) β¨
okay so bestie, welcome to this page from the Kernel API Manual π
it's giving kernel-internals realness, and we're talking about collapse_max_ptes_swap β no cap, it's here to do one very specific job.
π NAME π
collapse_max_ptes_swap β calculate the maximum allowed non-present PTEs or the maximum allowed non-present pagecache entries for the given collapse operation. π«Ά
π SYNOPSIS π
unsigned int collapse_max_ptes_swap (struct collapse_control *cc ,
unsigned int order );
π¦ ARGUMENTS π¦
ccβ the collapse control struct. literally the collapse control struct, bestie πorderβ the folio order being collapsed to. yes, that order π
π RETURN π
maximum number of non-present PTEs or the maximum allowed non-present pagecache entries for the collapse operation. that's the number it hands back β¨
π₯ SEE ALSO π₯
- Kernel file
./mm/khugepaged.cstruct khugepaged_scan(9) collapse_max_ptes_none(9)collapse_max_ptes_shared(9)collapse_pte_mapped_thp(9)collapse_file(9)
and that's the whole vibe π
this page comes from ./mm and is dated October 2026 β mwah, go forth and collapse 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