PageHuge(9)
π PageHuge(9) β like, the Kernel API Manual page you've been waiting for
okay bestie, welcome to the Kernel API Manual β¨ today's main character is PageHuge, and honestly? she's a vibe check for your pages. let's get into it π«Ά
πΈ NAME
PageHuge β determine if the page belongs to hugetlbfs
like, is this page a hugepage babe or not, that's the whole question π
β¨ SYNOPSIS
bool PageHuge (const struct page *page );
no cap, that's the entire signature. one page in, one bool out. iconic π
π ARGUMENTS
pageβ the page to test. that's it. that's the whole argument. she just wants the page to test π¦
π§ CONTEXT
Any context. literally any. no locks, no special mood, no prerequisites β press go whenever, bestie πβ¨
π₯ RETURN
trueβ for hugetlbfs pages π (slay, she's huge)falseβ for anon pages, or pages belonging to other filesystems π (not huge, not her era)
fr fr that's the whole return contract, no hidden extras, no "undefined otherwise", nothing. clean. periodt π
β SEE ALSO
the kernel file ./include/linux/page-flags.h, plus these absolute legends:
page_folio(9)folio_page(9)folio_xor_flags_has_waiters(9)folio_test_uptodate(9)folio_test_large(9)page_has_movable_ops(9)folio_has_private(9)
go read them, iykyk ππ
and that's the page!! π source vibes: ./include/linux, dated October 2026 β so like, future-core of her, ngl π¦β¨ catch you in the next manpage, bestie, mwah πππΈ
π¦ 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