mas_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mas_for_each(9) β€” Kernel API Manual πŸ’…

okay bestie, we're in the Kernel API Manual and today's main character is mas_for_each(9). it's giving "walk a range of the maple tree" energy, and yes, we're gonna go through every single deet. no cap. ✨


🌸 NAME 🌸

mas_for_each β€” Iterate over a range of the maple tree.

⭐ SYNOPSIS ⭐

mas_for_each (__mas , __entry , __max );

πŸŽ€ ARGUMENTS πŸŽ€

  • __mas β€” Maple Tree operation state (maple_state). it's the state your operation is carrying, periodt.
  • __entry β€” Entry retrieved from the tree. literally the thing you got back, bestie.
  • __max β€” maximum index to retrieve from the tree. the upper limit of the range.

πŸ¦‹ DESCRIPTION πŸ¦‹

When returned, mas->index and mas->last will hold the entire range for the entry. yes, the whole range β€” both fields, no crumbs. πŸ’…

πŸ’€ NOTE πŸ’€

heads up, bestie: it may return the zero entry. that's the note, and we are respecting it. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this lil page is sourced from ./include/linux, dated October 2026, and it's all about mas_for_each(9). periodt ✨🫢

πŸ“¦ where this page comes from