mas_find_range_rev(9)
π 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:
mas_prealloc_calc(9)mas_wr_preallocate(9)mas_insert(9)mas_alloc_cyclic(9)mas_walk(9)mte_dead_walk(9)mt_free_walk(9)mas_store(9)mas_store_gfp(9)mas_store_prealloc(9)mas_preallocate(9)mas_next(9)mas_next_range(9)mt_next(9)mas_prev(9)mas_prev_range(9)mt_prev(9)mas_pause(9)mas_find_setup(9)mas_find(9)mas_find_range(9)mas_find_rev_setup(9)mas_find_rev(9)mas_erase(9)mas_nomem(9)mas_nomem_nofail(9)mtree_load(9)mtree_store_range(9)mtree_store(9)mtree_insert_range(9)mtree_insert(9)mtree_alloc_cyclic(9)mtree_erase(9)__mt_dup(9)mtree_dup(9)__mt_destroy(9)mtree_destroy(9)mt_find(9)mt_find_after(9)
signed off from the source/version ./lib, dated October 2026 β¨ xoxo, your kernel 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