STRUCT RHASHTABLE_COMPARE_ARG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct rhashtable_compare_arg(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ and today's main character is struct rhashtable_compare_arg β€” literally the key for the function rhashtable_compare. no cap, that's its whole job and it's slaying at it πŸŽ€


🌸 NAME 🌸

struct rhashtable_compare_arg β€” the key for the function rhashtable_compare πŸ¦‹

like, that's it. that's the vibe. it's the little bundle of info that gets handed to the compare function so it knows what to compare against. iconic behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

struct rhashtable_compare_arg {
    struct rhashtable *ht;
    const void *key;
 };

that's the whole struct, bestie β€” two members, zero drama, pure efficiency πŸ’…


🫢 Members 🫢

  • ht β€” the hash table πŸ’– like, the actual table this whole thing is about. it's giving "context, but make it a pointer."
  • key β€” the key to compare against 🌟 this is the thing your compare function is out here checking against, fr fr.

πŸ”₯ SEE ALSO πŸ”₯

okay so if you're obsessed (and you should be), go check these out too:

  • Kernel file ./include/linux/rhashtable-types.h struct rhashtable_params(9) 🌈
  • struct rhashtable(9) πŸ’œ
  • struct rhltable(9) πŸ¦‹
  • struct rhashtable_walker(9) ⭐
  • struct rhashtable_iter(9) 🌸

they're all in the same friend group, iykyk 🧚


lowkey a reminder bestie: keep ht and key exactly as they are β€” no renaming, no "improving," no touching. we respect the struct in this house πŸ™ˆ

that's the whole page, bestie! πŸ’… this cutie came to you from ./include/linux, dated October 2026 β€” periodt, go read the source, mwah πŸ˜­πŸ’–πŸŽ€

πŸ“¦ where this page comes from