rb_find(9)
π rb_find π
okay so bestie, this is rb_find(9) from the Kernel API Manual. We're doing a tree search for a key, and the whole vibe is βfind the matching node or return NULL.β No cap. π
β¨ NAME β¨
rb_find β find @key in tree @tree π
π SYNOPSIS π
the signature, literally verbatim:
struct rb_node * rb_find (const void *key , const struct rb_root *tree , int (*cmp)(const void *key, const struct rb_node *) );
π ARGUMENTS π
keyβ key to match. This is the thing you're looking for, bestie. πtreeβ tree to search. The main character tree in question. π³cmpβ operator defining the node order. She's the one deciding how the nodes line up, iykyk. π§
π¦ DESCRIPTION π¦
Returns the rb_node matching key or NULL. That's the whole description, and honestly it ate. β¨
π SEE ALSO π
- Kernel file
./tools/include/linux/rbtree.h rbtree_postorder_for_each_entry_safe(9)rb_add_cached(9)rb_add(9)rb_find_add(9)rb_find_first(9)rb_next_match(9)rb_for_each(9)
mwah πβ¨ source/version: ./tools/include/linux; date: October 2026; and this iconic page is rb_find(9). π«Ά
π¦ 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