mas_set_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mas_set_range β€” bestie's guide to moving your Maple Tree range πŸ’–

okay so this is a page from the Kernel API Manual, section 9, and it's all about mas_set_range. slay, let's get into it πŸŽ€


✨ NAME ✨

mas_set_range β€” set up the Maple Tree operation state so it points at a different index. that's it, that's the vibe πŸ¦‹


🌸 SYNOPSIS 🌸

void mas_set_range (struct ma_state *mas , unsigned long start ,
       unsigned long last );

literally just that. three args, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • mas β€” the Maple Tree operation state. this is your main character struct, the whole operation lives here πŸ‘‘
  • start β€” the new start of the range in the Maple Tree. where the walk begins now, periodt πŸ’«
  • last β€” the new end of the range in the Maple Tree. the other end, matching set 🌈

πŸ’œ DESCRIPTION πŸ’œ

okay so the tea: this moves the operation state so it refers to a different range. and like, heads up β€” the effect of this is that you start a walk from the top, fr fr. so it's giving "fresh start energy" 😭

if you actually want to move to an adjacent index instead of restarting from the top, go check out mas_next β€” that's your girl for that 🫢

not me dropping a subtle detail: the restart-from-the-top thing is literally what this does, so don't be surprised when your traversal isn't where you left it πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

kernel file ./include/linux/maple_tree.h, plus all these icons:

like. the whole maple tree friend group showed up to the function πŸ’…βœ¨


mwah, that's the page πŸ“ this lil manual lives under ./include/linux, dated October 2026, and the page itself is mas_set_range(9) β€” go forth and set those ranges bestie πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from