clear_pfnblock_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… clear_pfnblock_bit(9) β€” the kernel API manual, bestie edition

Okay so this is clear_pfnblock_bit(9) from the Kernel API Manual β€” literally the page where we learn how to clear one (1) standalone bit of a pageblock. Lowkey iconic, highkey niche. Let's get into it 🫢


✨ NAME ✨

clear_pfnblock_bit β€” clear a standalone bit of a pageblock 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

void clear_pfnblock_bit (const struct page *page , unsigned long pfn ,
       enum pageblock_bits pb_bit );

That's the whole vibe: returns void, takes three args, done. No cap. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • page β€” the page within the block of interest πŸ’– (it's a const struct page *, so like… hands off, we're just reading)
  • pfn β€” the target page frame number (unsigned long, she's got range)
  • pb_bit β€” the pageblock bit to clear, typed as enum pageblock_bits, iykyk

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./mm/page_alloc.c β€” and honestly the whole friend group is here, so lemme introduce the squad πŸ’…:

Like, that's the entire contact list bestie 😭 go read them too, they ate πŸ”₯


Fr fr, this is a void function β€” it clears the bit and dips, no return value energy at all πŸ™ˆ

okay that's the page!! πŸ’œ sourced from ./mm, dated October 2026, and honestly? clear_pfnblock_bit(9) stays the main character. periodt. πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from