collapse_max_ptes_swap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯


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