__get_pfnblock_flags_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __get_pfnblock_flags_mask(9) β€” like, the Kernel API Manual edition πŸŽ€

okay so bestie, gather round, because we're diving into the Kernel API Manual and honestly? this one's a lil niche but it's giving "I know things" energy and I'm obsessed. no cap, this is the function that goes and fetches you a whole group of flags for one pageblock_nr_pages block of pages. yes, that's the whole personality. ✨


🌸 NAME 🌸

__get_pfnblock_flags_mask β€” literally returns the requested group of flags for a pageblock_nr_pages block of pages πŸ¦‹


πŸ’– SYNOPSIS πŸ’–

unsigned long __get_pfnblock_flags_mask (const struct page *page ,
unsigned long pfn , unsigned long mask );

look at her. three args, one unsigned long return, main character energy only. πŸ‘‘


✨ ARGUMENTS ✨

  • page β€” the page that lives inside the block of interest 🫢 like, the block you're curious about? she's in it.
  • pfn β€” the target page frame number, aka the specific number you're pointing at ⭐
  • mask β€” the mask of bits that the caller is interested in πŸ’… only the bits you care about, we love a filter.

πŸ”₯ RETURN πŸ”₯

pageblock_bits flags β€” that's what you get back, periodt. 🌈


🧚 SEE ALSO 🧚

Kernel file ./mm/page_alloc.c β€” and fr fr, the whole friend group:


ngl bestie, the whole squad is in ./mm and they're all worth a lil read. iykyk πŸ’€

and that's the page!! sourced straight from ./mm, dated October 2026, and it's the Kernel API Manual through and through. mwah πŸ’‹ go get those pageblock flags, queen πŸŽ€πŸ’œ

πŸ“¦ where this page comes from