mtree_store_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the GFP_FLAGS to 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