rb_find_first(9)
π NAME π
rb_find_first β find the first @key in @tree, bestie β¨
hey hi hello π«Ά welcome to the Kernel API Manual page for rb_find_first(9) β yes, the iconic little rbtree lookup. let's get into it, no cap π
β¨ SYNOPSIS β¨
struct rb_node * rb_find_first (const void *key , const struct rb_root *tree , int (*cmp)(const void *key, const struct rb_node *) );
πΈ ARGUMENTS πΈ
keyβ the key you're matching, periodt πtreeβ the tree you're searching, iykyk π³cmpβ the operator that defines node order, literally π§
π¦ DESCRIPTION π¦
okay so it returns the leftmost node matching key, or NULL. that's the whole description β short, sweet, and honestly iconic π
π 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(9)rb_next_match(9)rb_for_each(9)
go check these besties, fr fr π
okay that's the page, bestie π«Ά β source/version: ./tools/include/linux, dated October 2026. bye π
π¦ 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