STRUCT KHO_RADIX_WALK_CB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct kho_radix_walk_cb(9) β€” Kernel API Manual ✨

Okay so bestie, this is the Kernel API Manual page for struct kho_radix_walk_cb(9) β€” aka the callback duo for the KHO radix tree walk. It's giving β€œtiny struct, very important walk energy,” and we’re gonna get through it together. 🫢

🌸 NAME 🌸

struct kho_radix_walk_cb β€” callbacks for KHO radix tree walk. Lowkey the whole personality of this struct is β€œhey walk, call me when you hit stuff.” πŸ’…

✨ SYNOPSIS ✨

       struct kho_radix_walk_cb {
           int (*leaf)(unsigned long key, void *data);
           int (*node)(phys_addr_t phys, void *data);
        };

🧚 Members 🧚

  • leaf β€” called on each present key in the radix tree. If the key is actually there, it gets a callback visit. No cap. πŸ“
  • node β€” called on each node of the radix tree itself. It receives the physical address of the page containing the node. So it’s handing you phys, plus the data vibe. πŸ¦‹

🌈 Description 🌈

For each callback, the return-value rules are simple and honestly iconic:

  • return 0 β†’ the walk continues βœ…
  • return a non-zero value β†’ that value is directly returned to the caller 🚨

That’s the whole vibe check. No extra behavior invented, bestie β€” just those two rules. periodt. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/linux/kho_radix_tree.h
  • Kexec Handover Radix Tree(9)

Cute lil sign-off: source/version line is ./include/linux, the date stamp is October 2026, and the star of the show is struct kho_radix_walk_cb(9). Obsessed with this callback representation, fr fr. πŸ’œπŸŽ€

πŸ“¦ where this page comes from