memblock_re...ory_base_pfn(9)
π memblock_re...ory_base_pfn(9) π
okay bestie so you found yourself in the Kernel API Manual, welcome, this one's a tiny little icon but she's important. β¨
πΈ NAME πΈ
memblock_region_memory_base_pfn β literally just get the lowest pfn of the memory region π
π¦ SYNOPSIS π¦
unsigned long memblock_region_memory_base_pfn (const struct
memblock_region *reg );
like, that's the whole thing. she takes one pointer and hands you back an unsigned long. no cap. π
β¨ ARGUMENTS β¨
regβ thememblock_regionstructure π«Ά that's it, that's the whole argument list, she's low-maintenance
β RETURN β
returns the lowest pfn intersecting with the memory region π that's the whole vibe, that's what you came for
π SEE ALSO π
okay this is the part where she name-drops her entire friend group, and honestly? obsessed. π
Kernel file ./include/linux/memblock.h
enum memblock_flags(9)struct memblock_region(9)struct memblock_type(9)struct memblock(9)for_each_physmem_range(9)__for_each_mem_range(9)__for_each_mem_range_rev(9)for_each_mem_range(9)for_each_mem_range_rev(9)for_each_reserved_mem_range(9)for_each_mem_pfn_range(9)for_each_free_mem_range(9)for_each_free_mem_range_reverse(9)memblock_set_current_limit(9)memblock_region_memory_end_pfn(9)memblock_region_reserved_base_pfn(9)memblock_region_reserved_end_pfn(9)for_each_mem_region(9)for_each_reserved_mem_region(9)
and that's the whole page bestie, go forth and get that pfn ππ§
k byeee π this one ships out of./include/linux, October 2026 edition, filed undermemblock_re...ory_base_pfn(9)β 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