mas_wr_preallocate(9)
π¦ NAME
mas_wr_preallocate β bestie, this one preallocates enough nodes for a store operation β¨
So like, before you actually shove something into the tree, this thing makes sure the tree has enough room ready to go. No scrambling mid-store, no cap. π
π SYNOPSIS
void mas_wr_preallocate (struct ma_wr_state *wr_mas , void *entry );
Yeah that's the whole signature. Short king. π
πΈ ARGUMENTS
wr_masβ the maple write state π like, the whole vibe/status object for the write you're about to do.entryβ the entry that will be stored π the actual thing going into the tree, bestie.
π« SEE ALSO
Kernel file ./lib/maple_tree.c β and honestly the whole friend group is here, it's giving family reunion π«Ά
mas_prealloc_calc(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_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)
That's forty whole references and every single one ate π₯ iykyk.
ok that's the whole page bestie, go forth and preallocate responsibly π§ββοΈ
kisses, this page lives in ./lib and it's dated October 2026 β mas_wr_preallocate(9), signed, sealed, slayed ππ
π¦ 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