for_each_physmem_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, meet for_each_physmem_range(9) β€” she's serving Kernel API Manual energy, and her whole thing is: iterate through physmem areas not included in type. no cap, that's the job πŸ’…


✨ SYNOPSIS ✨

for_each_physmem_range (i , type , p_start , p_end );

That's the exact spell, spaces and all β€” do not "clean it up," bestie, she's built like that 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” a u64 used as the loop variable. She's literally the counter, main character energy ✨
  • type β€” a ptr to memblock_type which excludes from the iteration; can be NULL. So if there's no type to exclude, NULL is valid and she's chill with it πŸ’…
  • p_start β€” a ptr to phys_addr_t for the start address of the range; can be NULL. Start-address storage? optional, iconic, no notes 🌸
  • p_end β€” a ptr to phys_addr_t for the end address of the range; can be NULL. End-address storage? also optional, also slay πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/memblock.h is the home base, and here's the whole linked-up friend group:


okay that's the whole vibe check πŸ’– from the ./include/linux source corner of the Kernel API Manual, dated October 2026 β€” for_each_physmem_range(9) signing off, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from