for_each_zo...ist_nodemask(9)
for_each_zone_zonelist_nodemask(9) π
okay bestie, this is the for_each_zone_zonelist_nodemask(9) page from the Kernel API Manual β¨ it's a helper macro with serious main character energy, and no cap, it does exactly one job.
π NAME π
for_each_zone_zonelist_nodemask β helper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask π¦
β¨ SYNOPSIS β¨
for_each_zone_zonelist_nodemask (zone , z , zlist , highidx , nodemask );
π ARGUMENTS π
zoneβ the current zone in the iterator πzβ the current pointer withinzonelist->_zonerefsbeing iterated πΈzlistβ the zonelist being iterated π¦highidxβ the zone index of the highest zone to return βnodemaskβ Nodemask allowed by the allocator π
π DESCRIPTION π
this iterator loops through all zones at or below a given zone index and within a given nodemask. periodt. that's the whole plot, bestie β no extra lore, fr fr π
π SEE ALSO π
kernel file ./include/linux/mmzone.h β see also this whole friend group:
is_highmem(9)for_each_online_pgdat(9)for_each_zone(9)next_zones_zonelist(9)first_zones_zonelist(9)for_each_zone_zonelist(9)pfn_valid(9)
that's the vibe check, bestie β from ./include/linux, October 2026, for_each_zo...ist_nodemask(9) ππ
π¦ 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