rb_find_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ‘‘


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