__radix_tree_replace(9)
π __radix_tree_replace(9) π
okay so bestie, this is a page from the Kernel API Manual, and it's all about __radix_tree_replace β yes, the double-underscore one. main character energy, honestly. β¨
πΈ NAME πΈ
__radix_tree_replace β replace item in a slot. that's it, that's the job π
β¨ SYNOPSIS β¨
void __radix_tree_replace (struct radix_tree_root *root , struct
radix_tree_node *node , void __rcu **slot , void *item );
π ARGUMENTS π
rootβ radix tree root π³nodeβ pointer to tree nodeslotβ pointer to slot in nodeitemβ new item to store in the slot. π
π¦ DESCRIPTION π¦
okay so this one is for use with __radix_tree_lookup. The caller must hold tree write locked across slot lookup and replacement. not optional, bestie β hold that write lock across the lookup and the replacement, no gaps. periodt. π₯
π SEE ALSO π
Kernel file ./lib/radix-tree.c β and the whole friend group is here:
radix_tree_find_next_bit(9)radix_tree_shrink(9)__radix_tree_create(9)radix_tree_insert(9)__radix_tree_lookup(9)radix_tree_lookup_slot(9)radix_tree_lookup(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 π source/version ./lib, dated October 2026, on the __radix_tree_replace(9) page. byeee π«Ά
π¦ 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