mas_store_gfp(9)
π mas_store_gfp(9) β like, the whole manual page, bestie π
okay so this is a page from the Kernel API Manual, and it's about mas_store_gfp(9) β yes the title is the same as the function name, iconic, we love a self-titled moment π
πΈ NAME πΈ
mas_store_gfp β Store a value into the tree.
that's it. that's the whole name section. short and slay β¨
π¦ SYNOPSIS π¦
int mas_store_gfp (struct ma_state *mas , void *entry , gfp_t gfp );
so you call it, you give it three things, and it hands you back an int. that's the vibe check right there π«Ά
π ARGUMENTS π
masβ The maple state π like, this is the state of your maple tree, your main character data structure, the thing you're operating on.entryβ The entry to store π this is the value actually going into the tree, bestie. the payload. the moment.gfpβ TheGFP_FLAGSto use for allocations if necessary π₯ so if the store needs to allocate memory, these are the flags it gets to use. "if necessary" is doing a lot of work there, ngl.
β RETURN β
0β on success π slay, it worked-EINVALβ on invalid request π the request was not it, invalid, rejected, denied-ENOMEMβ if memory could not be allocated π like the memory just wasn't there, no cap, it tried and it couldn't
π SEE ALSO π
Kernel file ./lib/maple_tree.c
and now the full friend group, everyone in the mapley tree cinematic universe π:
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_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, literally every single one of them, no skips, no summarising, periodt β¨
this cutie lives under ./lib, the date on it is October 2026, and the page itself is mas_store_gfp(9) β mwah, go store something in a tree 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