clear_pfnblock_bit(9)
π 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 aconst 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 asenum pageblock_bits, iykyk
π SEE ALSO π
Kernel file ./mm/page_alloc.c β and honestly the whole friend group is here, so lemme introduce the squad π
:
__get_pfnblock_flags_mask(9)get_pfnblock_bit(9)get_pfnblock_migratetype(9)__set_pfnblock_flags_mask(9)set_pfnblock_bit(9)set_pageblock_migratetype(9)__move_freepages_block_isolate(9)__putback_isolated_page(9)__free_pages(9)free_pages(9)alloc_pages_exact(9)alloc_pages_exact_nid(9)free_pages_exact(9)nr_free_zone_pages(9)nr_free_buffer_pages(9)find_next_best_node(9)free_reserved_pages(9)setup_per_zone_wmarks(9)__free_contig_range(9)alloc_contig_frozen_range(9)alloc_contig_range(9)alloc_contig_frozen_pages(9)alloc_contig_pages(9)free_contig_frozen_range(9)free_contig_range(9)alloc_pages_nolock(9)
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
- 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