rb_next_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 one
  • node β€” -- undescribed -- 😭 fr fr the docs just left her hanging, not me being mysterious, that's genuinely what it says
  • cmp β€” 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 🌈

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