mas_set_range(9)
π 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:
Maple tree flags(9)MTREE_INIT(9)MTREE_INIT_EXT(9)mtree_empty(9)mas_reset(9)mas_for_each(9)mas_for_each_rev(9)__mas_set_range(9)mas_set(9)mt_init_flags(9)mt_init(9)mt_clear_in_rcu(9)mt_set_in_rcu(9)mt_for_each(9)
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
- 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