kho_radix_add_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

This page is kho_radix_add_key(9) from the Kernel API Manual β€” yes bestie, the manual name is literally in the title vibe. πŸ’…

kho_radix_add_key β€” add a key to the radix tree. Slay.


🌸 SYNOPSIS 🌸

Okay so here's the whole signature at a glance:

int kho_radix_add_key (struct kho_radix_tree *tree , unsigned long key
);

πŸŽ€ ARGUMENTS πŸŽ€

Two things go in, bestie:

  • tree β€” The KHO radix tree.
  • key β€” The key to add.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the lore: this function traverses the radix tree based on the key provided. It sets the corresponding bit in the leaf bitmap to mark the key as present. If intermediate nodes do not exist along the path, they are allocated and added to the tree. It's giving β€œwalk the path, flip the bit, build missing nodes” energy. πŸ¦‹


πŸ’€ NOTE πŸ’€

⚠️ Currently only keys of width up to KHO_RADIX_KEY_WIDTH are supported. This limit only exists because current users of the radix tree don't use more than that. Changing the maximum width requires changing the tree depth, which needs bumping the ABI version. So yeah β€” that's the rule, and it's not just a vibe. πŸ’€

🌈 RETURN 🌈

0 on success, or a negative error code on failure. Simple as that. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./kernel/liveupdate/kexec_handover.c β€” yes, that's the spot.

Also these iconic functions, no cap:


byeee 🫢 source/version: ./kernel/liveupdate Β· date: October 2026 Β· page: kho_radix_add_key(9) β€” periodt.

πŸ“¦ where this page comes from