mtree_destroy(9)
π mtree_destroy(9) β Kernel API Manual π
okay so bestie, we're in the Kernel API Manual today and the star of the show is literally mtree_destroy, no cap. it destroys a maple tree. that's it. that's the vibe.
πΈ NAME πΈ
mtree_destroy β Destroy a maple tree ππ
β¨ SYNOPSIS β¨
void mtree_destroy (struct maple_tree *mt );
like, that's the whole signature. void in, void out, tree gone. iykyk.
π ARGUMENTS π
mtβ the maple tree. the one and only. the tree in question. the main character, honestly.
π¦ DESCRIPTION π¦
okay so here's the tea: mtree_destroy frees all resources used by the tree. all of them. every last one. it's giving cleanup era β¨π§Ή
and like, plot twist that's actually slay: it handles locking for you. you don't gotta do the lock dance yourself. it just does it. iconic behaviour fr fr π
π SEE ALSO π
this list is LOWKEY huge, bestie, so buckle up β the kernel file lives at ./lib/maple_tree.c and here's every single friend in the maple tree group chat π«Ά:
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_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)mt_find(9)mt_find_after(9)
ngl __mt_destroy(9) is right there in the list too, so if you're feeling spicy and want the underscore twin, you know where to look π
laterrr bestie!! this page came from the ./lib corner of the kernel and it's dated October 2026, signed sealed delivered as mtree_destroy(9) πβ¨π
π¦ 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