next_zones_zonelist(9)
π next_zones_zonelist π
okay so bestie, this is next_zones_zonelist(9) from the Kernel API Manual, and it's giving βtiny cursor go brrr inside a zonelistβ energy. no cap, it's a little helper for walking zones without losing your place. π¦
β¨ NAME β¨
next_zones_zonelist β returns the next zone at or below highest_zoneidx within the allowed nodemask, using a cursor within a zonelist as a starting point. periodt. π
π SYNOPSIS π
struct zoneref * next_zones_zonelist (struct zoneref *z , enum zone_type
highest_zoneidx , const nodemask_t *nodes );
π ARGUMENTS π
zβ the cursor you're using as a starting point for the search. main character of the walk, fr fr. πhighest_zoneidxβ the zone index of the highest zone to return. like the ceiling, bestie. βnodesβ an optional nodemask to filter the zonelist with. optional but iconic. π
π¦ DESCRIPTION π¦
This function returns the next zone at or below a given zone index that is within the allowed nodemask, using a cursor as the starting point for the search. The zoneref returned is a cursor that represents the current zone being examined. It should be advanced by one before calling next_zones_zonelist again. literally do not forget that advance-by-one step, iykyk. π
π₯ RETURN π₯
the next zone at or below highest_zoneidx within the allowed nodemask, using a cursor within a zonelist as a starting point. that's the whole vibe check. β¨
πΈ SEE ALSO πΈ
Kernel file ./include/linux/mmzone.h is right here in the group chat, plus these iconic little refs:
is_highmem(9)for_each_online_pgdat(9)for_each_zone(9)first_zones_zonelist(9)for_each_zone_zonelist_nodemask(9)for_each_zone_zonelist(9)pfn_valid(9)
okay that's the page, mwah π β source/version is ./include/linux, dated October 2026, and the manpage is next_zones_zonelist(9). obsessed with this for you, bestie. π«Ά
π¦ 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