rb_next_match(9)
β¨ rb_next_match(9) β¨
okay so this is a page straight out of the Kernel API Manual, and it's literally about finding the next matching @key in a @tree π³π bestie, it's a whole rbtree moment, iykyk.
πΈ NAME πΈ
rb_next_match β find the next @key in @tree π
π¦ SYNOPSIS π¦
struct rb_node * rb_next_match (const void *key , struct rb_node *node ,
int (*cmp)(const void *key, const struct rb_node *) );
like, that's the whole signature, no cap β copy it exactly, she's iconic π
π ARGUMENTS π
keyβ the key to match π like that's the whole vibe, you're looking for this onenodeβ-- undescribed --π fr fr the docs just left her hanging, not me being mysterious, that's genuinely what it sayscmpβ the operator defining node order βοΈ she's the main character who decides who comes before who
π DESCRIPTION π
Returns the next node matching key, or NULL. π«Ά
that's it, that's the whole thing β next match, or NULL if there isn't one. no extra lore, no secret bonus behaviour, periodt β¨
π 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_find_first(9)rb_for_each(9)
the whole rbtree friend group honestly, go say hi to all of them π
lowkey a reminder bestie: this one lives under ./tools/include/linux β that's her home address, don't lose it π‘
and that's the page!! sourced from ./tools/include/linux, dated October 2026 β mwah, take care of her, she's a classic πππ¦
π¦ 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