kho_radix_walk_tree(9)
β¨ kho_radix_walk_tree(9) β¨
okay bestie, welcome to the Kernel API Manual π today we're doing kho_radix_walk_tree, and honestly? it's giving "scenic drive through the whole tree" energy π³β¨
π NAME π
kho_radix_walk_tree β literally walks the radix tree and calls a callback for each key π«Ά
πΈ SYNOPSIS πΈ
int kho_radix_walk_tree (struct kho_radix_tree *tree , const struct
kho_radix_walk_cb *cb , void *data );
π¦ ARGUMENTS π¦
treeβ a pointer to the KHO radix tree you're about to walk π this is the main character, the tree in question.cbβ the set of callbacks that get invoked during the tree walk. yes, plural, it's a whole little squad πdataβ an opaque data pointer, passed to each callback incb. opaque means don't peek, just pass it along π
π DESCRIPTION π
so what does this actually do? it walks the radix tree, searching from the top level down to the lowest level (level 0), invoking the appropriate callbacks as it goes β¨
top-down, no cap. it hits the levels in order and lets cb handle the vibes at each stop π§
β RETURN β
0if the walk completed the specified tree π (a full, clean run, slay)- or the non-zero return value from the callback that stopped the walk π yep β a callback can call it and end the whole thing, and you get its value back.
π SEE ALSO π
kernel file ./kernel/liveupdate/kexec_handover.c
kho_encode_radix_key(9)kho_decode_radix_key(9)kho_radix_add_key(9)kho_radix_del_key(9)kho_radix_init_tree(9)kho_radix_destroy_tree(9)kho_restore_folio(9)kho_restore_pages(9)kho_reserve_scratch(9)kho_add_subtree(9)kho_preserve_folio(9)kho_unpreserve_folio(9)kho_preserve_pages(9)kho_unpreserve_pages(9)kho_preserve_vmalloc(9)kho_unpreserve_vmalloc(9)kho_restore_vmalloc(9)kho_alloc_preserve(9)kho_unpreserve_free(9)kho_restore_free(9)is_kho_boot(9)kho_retrieve_subtree(9)
lowkey obsessed with how many besties this page has. that's a full group chat, fr fr π
and that's the whole page, bestie β this one lives under ./kernel/liveupdate, dated October 2026, and it's still cute little kho_radix_walk_tree(9) from the Kernel API Manual at the end π
β¨ bye!! ππ¦πΈ
π¦ 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