rb_find_rcu(9)
πΈ rb_find_rcu(9) β Kernel API Manual πΈ
β¨ NAME β¨
rb_find_rcu β find @key in tree @tree π
π SYNOPSIS π
struct rb_node * rb_find_rcu (const void *key , const struct rb_root
*tree , int (*cmp)(const void *key, const struct rb_node *) );
π ARGUMENTS π
keyβ key to match π literally the thing youβre looking for, bestie.treeβ tree to search π³ the place youβre searching, obvs.cmpβ operator defining the node order π think of it as the ordering vibe check.
π DESCRIPTION π
okay so hereβs the tea: this is the lookup for @key in tree, and it returns the rb_node matching key or NULL. Periodt. β¨
But notably, the big caveat is right here: tree descent vs concurrent tree rotations is unsound and can result in false-negatives. Thatβs the warning, bestie β unsound behavior and possible false-negatives, no cap. π Do not skip the vibe check on that one.
π SEE ALSO π
- Kernel file
./include/linux/rbtree.h rbtree_postorder_for_each_entry_safe(9),rb_add_cached(9),rb_add_linked(9),rb_add(9),rb_find_add_cached(9),rb_find_add(9),rb_find_add_rcu(9),rb_find(9),rb_find_first(9),rb_next_match(9),rb_for_each(9)
mwah π this page is sourced from ./include/linux, dated October 2026, and itβs the rb_find_rcu(9) manual β 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