radix_tree_deref_slot(9)
okay so bestie, welcome to radix_tree_deref_slot(9) from the Kernel API Manual ๐ this is the little โdereference a slotโ moment, and it is giving โI know my tree locksโ energy. Periodt.
โจ NAME โจ
radix_tree_deref_slot โ dereference a slot. Thatโs the whole name, and she ate. ๐
๐ซถ SYNOPSIS ๐ซถ
void * radix_tree_deref_slot (void __rcu **slot );
๐ธ ARGUMENTS ๐ธ
slotโ the slot pointer, returned byradix_tree_lookup_slot. Thatโs your lil handle, bestie; donโt invent your own. ๐
๐ DESCRIPTION ๐
Okay so hereโs the vibe check: this function is for use with radix_tree_lookup_slot โ theyโre a matching set, iykyk. ๐ฆ
The caller must hold the tree at least read locked across slot lookup and dereference. Like, across both steps, no gaps, no โoops I forgot the lockโ main character moments. ๐ญ
Thatโs not required if the write lock is held (ie. items cannot be concurrently inserted). So if you already have the write lock, youโre chilling. ๐ซถ
If only the read lock is held, radix_tree_deref_retry must be used to confirm validity of the pointer. Do not skip this, bestie โ itโs literally the validity check. ๐
๐ RETURN ๐
The return is the entry stored in that slot. Thatโs what you get, and itโs iconic. ๐
๐ฆ SEE ALSO ๐ฆ
Go touch grass in these related pages and files, fr fr:
- Kernel file:
./include/linux/radix-tree.h - struct
radix_tree_iter(9) Radix-tree synchronization(9)radix_tree_deref_slot_protected(9)radix_tree_deref_retry(9)radix_tree_exception(9)radix_tree_iter_init(9)radix_tree_next_chunk(9)radix_tree_iter_lookup(9)radix_tree_iter_retry(9)radix_tree_iter_resume(9)radix_tree_chunk_size(9)radix_tree_next_slot(9)radix_tree_for_each_slot(9)radix_tree_for_each_tagged(9)
mwah ๐ โ this pageโs source/version is ./include/linux, and itโs dated October 2026; itโs a Kernel API Manual situation, and thatโs the cute lil sign-off. ๐โจ
๐ฆ 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