kho_radix_walk_tree(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 in cb. 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 ⭐

  • 0 if 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


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