__radix_tree_lookup(9)
π
__radix_tree_lookup(9) β the Kernel API Manual glow-up π
okay bestie, welcome to the Kernel API Manual page for __radix_tree_lookup(9) β she's giving lookup-core, she's giving radix-tree realness, and we're gonna get through it together π«Άβ¨
πΈ NAME πΈ
__radix_tree_lookup β lookup an item in a radix tree π
β¨ SYNOPSIS β¨
void * __radix_tree_lookup (const struct radix_tree_root *root ,
unsigned long index , struct radix_tree_node **nodep , void __rcu
***slotp );
π ARGUMENTS π
rootβ radix tree root πindexβ index key πnodepβ returns node π¦slotpβ returns slot π³οΈ
π¦ DESCRIPTION π¦
Lookup and return the item at position index in the radix tree root. Slay, that's the whole vibe β¨
But wait, there's a lil detail, and it's lowkey important: until there is more than one item in the tree, no nodes are allocated, and root->xa_head is used as a direct slot instead of pointing to a node β in which case *nodep will be NULL ππ
π SEE ALSO π
Kernel file ./lib/radix-tree.c β and honestly the whole radix-tree friend group showed up:
radix_tree_find_next_bit(9)radix_tree_shrink(9)__radix_tree_create(9)radix_tree_insert(9)radix_tree_lookup_slot(9)radix_tree_lookup(9)__radix_tree_replace(9)radix_tree_replace_slot(9)radix_tree_iter_replace(9)radix_tree_tag_set(9)radix_tree_tag_clear(9)radix_tree_iter_tag_clear(9)radix_tree_tag_get(9)radix_tree_next_chunk(9)radix_tree_gang_lookup(9)radix_tree_gang_lookup_tag(9)radix_tree_gang_lookup_tag_slot(9)radix_tree_iter_delete(9)radix_tree_delete_item(9)radix_tree_delete(9)radix_tree_tagged(9)idr_preload(9)idr_destroy(9)
mwah π this page came from ./lib, dated October 2026, and it's literally called __radix_tree_lookup(9) β periodt πβ¨
π¦ 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