for_each_mem_region(9)
π for_each_mem_region π
okay so bestie, welcome to the Kernel API Manual entry for for_each_mem_region β yes that's the man page name too, we're keeping it cute and consistent π
β¨ NAME β¨
for_each_mem_region β literally just iterate over memory regions, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
for_each_mem_region (region );
periodt. that's the whole signature, no notes π
π ARGUMENTS π
regionβ the loop variable, bestie. it's the little guy that holds each region as you go around the loop π«Ά
π₯ SEE ALSO π₯
okay this is the friends-of-the-page section, and there are so many of them, so buckle up π
The kernel file lives at ./include/linux/memblock.h, and from there you can go meet:
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_base_pfn(9)memblock_region_memory_end_pfn(9)memblock_region_reserved_base_pfn(9)memblock_region_reserved_end_pfn(9)for_each_reserved_mem_region(9)
like, that's the whole group chat honestly π go say hi π
ngl, this page is short but she ate. no cap, no skipped details, just strutting β¨
okay and finally the cute sign-off: this little icon lives under ./include/linux, dated October 2026, and her full name is for_each_mem_region(9) β say it with your chest ππ¦πΈ
π¦ 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