mas_store(9)
π mas_store(9) β the Kernel API Manual, bestie edition π
okay so real talk, this is mas_store(9) from the Kernel API Manual, and honestly? iconic behaviour from the maple tree crew. let's get into it π§
β¨ NAME β¨
mas_store β stores an @entry. that's it, that's the whole job, and she does it slayfully π
πΈ SYNOPSIS πΈ
void * mas_store (struct ma_state *mas , void *entry );
look at her. simple signature, zero drama, all vibes β¨
π ARGUMENTS π
masβ the maple state π like, the whole situation you're working inside of.entryβ the entry you're storing. the thing. the icon. the moment π
π¦ DESCRIPTION π¦
so here's the tea, bestie: mas->index and mas->last are what you use to set the range for the entry π«Ά that's the whole mechanic. the range comes from the state, not from extra args, periodt.
β RETURN β
returns the first entry between mas->index and mas->last, or NULL π no cap, that's it.
ngl, if you get NULL back, don't come for me β that's just what the manpage says π
π SEE ALSO π
okay this list is long and honestly? she ate. go read these if you wanna be a maple tree main character π
kernel file ./lib/maple_tree.c plus:
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_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_find_range_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)
and that's the whole page, bestie π«Ά this little gem lives in ./lib, dates from October 2026, and answers to the name mas_store(9). lowkey obsessed. bye πβ¨π
π¦ 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