STRUCT RHASHTABLE_COMPARE_ARG(9)
π 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.hstructrhashtable_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: keephtandkeyexactly 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
- 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