mtree_store_range(9)
πΈ mtree_store_range(9) β a lil' page from the Kernel API Manual π
okay so bestie, this is mtree_store_range(9) and it lives in the Kernel API Manual, and honestly? it's giving "put a thing at a range of places in the maple tree" and it ate. let's get into it β¨
π¦ NAME π¦
mtree_store_range β store an entry at a given range. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
int mtree_store_range (struct maple_tree *mt , unsigned long index ,
unsigned long last , void *entry , gfp_t gfp );
look at her. five params, one int coming back, no notes. π
π ARGUMENTS π
mtβ the maple tree. your main character. the tree we're doing all this for π³indexβ the start of the range. where the whole thing begins, fr fr πlastβ the end of the range. the finish line, the closing bracket, the "and that's on periodt" π―entryβ the entry to store. the actual thing you're yeeting in there π«Άgfpβ theGFP_FLAGSto use for allocations. yes, the flags. the allocation vibes. that's the whole description and we respect it π§
π₯ RETURN π₯
0β success!! we love to see it π-EINVALβ invalid request. bestie that's not valid, we can't do that π-ENOMEMβ memory could not be allocated. literally the worst, no cap π
π SEE ALSO π
the friend group. the whole group chat. okay here we go: 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(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(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).
like I said. the entire group chat. iykyk π«Ά
ngl bestie, that SEE ALSO list is long enough to need its own SEE ALSO. slay though, they're all iconic π
and that's the page!! sign-off time: this one came from the ./lib section, dated October 2026, and it's the mtree_store_range(9) manual page β go forth and store that range, you absolute icon ππ¦β
π¦ 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