mtree_empty(9)
π mtree_empty β okay bestie, is this tree actually empty or not
Hi hi! Welcome to the mtree_empty(9) page from the Kernel API Manual β yes we're in the kernel docs now, and yes we're gonna slay it. Stick around, this one is short and sweet. π
πΈ NAME
mtree_empty β literally just tells you if a tree has any present entries. That's it. That's the whole vibe check. β¨
π SYNOPSIS
bool mtree_empty (const struct maple_tree *mt );
π¦ ARGUMENTS
mtβ the Maple Tree. That's the tree we're asking about. No cap, that's the entire argument list. π
π CONTEXT
Any context. Any. Context. Doesn't matter where you call it from, she's chill like that. π§
β RETURN
Returns true if the tree contains only NULL pointers. So like β if everything in there is a NULL pointer, you get true. If there's anything actually present, nope. π«Ά
π SEE ALSO
- Kernel file
./include/linux/maple_tree.hπ - Maple tree flags(9)
MTREE_INIT(9)MTREE_INIT_EXT(9)mas_reset(9)mas_for_each(9)mas_for_each_rev(9)__mas_set_range(9)mas_set_range(9)mas_set(9)mt_init_flags(9)mt_init(9)mt_clear_in_rcu(9)mt_set_in_rcu(9)mt_for_each(9)
All of those are linked above, fr fr β go click around, it's giving maple tree lore. π₯
π reminder:truemeans onlyNULLpointers live in there. Not "kind of empty". Not "empty-ish". OnlyNULL. Periodt.
And that's the page, bestie! π This little baddie lives in ./include/linux and was dated October 2026 β so mark your calendar, mwah ππ
π¦ 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