next_zones_zonelist(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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