for_each_res...d_mem_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 for_each_reserved_mem_region(9) 🌸

ok so real talk, bestie β€” this is a page from the Kernel API Manual, and the full name got chopped in the header (for_each_res...d_mem_region(9), screaming 😭), but the actual macro is for_each_reserved_mem_region and she is literally the icon of reserved memory. Let's get into it 🫢


✨ NAME ✨

for_each_reserved_mem_region β€” iterate over reserved memory regions πŸ’…

like, it's giving "for each reserved memory region, do the thing." main character loop energy, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

for_each_reserved_mem_region (region );

that's it. that's the whole vibe. one argument, in and out 🌈


πŸŽ€ ARGUMENTS πŸŽ€

  • region β€” the loop variable, bestie! it's the little guy that gets handed each reserved memory region as the loop goes around. iykyk πŸ’–

⭐ SEE ALSO ⭐

ok this is the part where the manpage name-drops literally everyone in the friend group. all of these live in the kernel file ./include/linux/memblock.h:

note that the whole squad is listed above β€” don't come for me if you wanted a shorter list, the original said all of them and we keep all of them πŸ”₯

and that's the page, diva πŸ’œ huge thank you to ./include/linux for hosting, and a very happy October 2026 to you all β€” this has been for_each_res...d_mem_region(9), signing off πŸŽ€βœ¨πŸŒΈ

πŸ“¦ where this page comes from