mas_find_range_rev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mas_find_range_rev(9) πŸ’…

okay so bestie, this is the Kernel API Manual page for mas_find_range_rev, and it’s giving tiny-but-mighty kernel energy. we’re keeping every single detail, so grab your iced coffee and let’s go. 🫢✨


πŸŽ€ NAME πŸŽ€

mas_find_range_rev β€” on the first call, find the first non-null entry at or below mas->index down to %min. Otherwise, advance to the previous slot after mas->index down to %min.

✨ SYNOPSIS ✨

void * mas_find_range_rev (struct ma_state *mas , unsigned long min );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mas β€” the maple state. that’s the whole description, bestie. πŸ’…
  • min β€” the minimum value to check.

🌸 DESCRIPTION 🌸

okay so lock check first, because this is not a drill: you must hold rcu_read_lock or the write lock. like, actually must. periodt. πŸ”₯

if an entry exists, last and index are updated accordingly. also, it may set mas->status to ma_underflow. that’s the whole note. no extra lore, no cap. πŸ“

πŸ”₯ RETURN πŸ”₯

the entry, or NULL. that’s it. that’s the return. ✨

🌈 SEE ALSO 🌈

Kernel file ./lib/maple_tree.c β€” and the whole friend group is here:


signed off from the source/version ./lib, dated October 2026 ✨ xoxo, your kernel bestie πŸ’–

πŸ“¦ where this page comes from