btree_destroy(9)
π btree_destroy(9) β the Kernel API Manual glow-up
okay so bestie, welcome to btree_destroy(9) β yes, section 9, the kernel-funcs girlypop section, we love her π
β¨ NAME β¨
btree_destroy β destroy mempool π§
like, she destroys the mempool. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
void btree_destroy (struct btree_head *head );
that's it. one function, one argument, zero drama (well, almost β see DESCRIPTION, bestie, there's a whole caveat) π«Ά
π ARGUMENTS π
headβ the btree head to destroy π literally the thing you're sending to the void. it's thestruct btree_head *from the synopsis, and yes, you gotta hand her over.
π DESCRIPTION π
so what does she actually do? this function destroys the internal memory pool β¨ periodt. the pool is gone. she ate. π₯
but bestie, listen to me, come closer, this is the important part π:
use this only when usingbtree_initβ and NOT withbtree_init_mempoolπ¨
like, the vibe check here is real. btree_destroy and btree_init are a matched set, they're endgame, they're the main characters together π
. btree_init_mempool is a different setup and she does not get this destroy call. pairing them up is not it, ngl. so know which init you used before you call this, fr fr π¦
π SEE ALSO π
the whole friend group, honestly π:
- Kernel file
./include/linux/btree.hπ B+Tree basics(9)struct btree_head(9)btree_alloc(9)btree_free(9)btree_init_mempool(9)btree_init(9)btree_lookup(9)btree_insert(9)btree_update(9)btree_remove(9)btree_merge(9)btree_last(9)btree_get_prev(9)
iykyk π go read btree_init(9) first if you're confused, she explains everything π
and that's the page!! mwah π this one's living out of ./include/linux, dated October 2026, and yeah, the title at the top and bottom is btree_destroy(9) β iconic, consistent, we stan a stable header βπ¦π
π¦ 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