rhltable_lookup(9)
π rhltable_lookup β the kernel API manual, bestie edition π
okay so real talk, this is rhltable_lookup(9), straight out of the kernel API manual (section 9, iykyk). it's a whole vibe and it's about to be your new fave π¦
β¨ NAME β¨
rhltable_lookup β search a hash list table π
πΈ SYNOPSIS πΈ
struct rhlist_head * rhltable_lookup (struct rhltable *hlt , const void
*key , const struct rhashtable_params params );
like, that's the whole signature. no cap, that's it. π
π ARGUMENTS π
hltβ the hash table itself. the main character of this whole operation πkeyβ a pointer to the key you're hunting for. the thing you're tryna match π―paramsβ the hash table parameters. the settings, the config, the ~parameters~ βοΈ
π«Ά DESCRIPTION π«Ά
so here's the tea β: it computes the hash value for the key, then traverses the bucket chain looking for an entry with an identical key. all matching entries are returned in a list π
β οΈ important, fr fr: this must only be called under the RCU read lock. not optional. not a suggestion. do not skip this. π
and what do you get back? it returns the list of entries that match the given key. slay. β¨
π SEE ALSO π
the whole friend group, periodt π:
- Kernel file
./include/linux/rhashtable.hstruct bucket_table(9) rht_grow_above_75(9)rht_shrink_below_30(9)rht_grow_above_100(9)rht_grow_above_max(9)rht_for_each_from(9)rht_for_each(9)rht_for_each_entry_from(9)rht_for_each_entry(9)rht_for_each_entry_safe(9)rht_for_each_rcu_from(9)rht_for_each_rcu(9)rht_for_each_entry_rcu_from(9)rht_for_each_entry_rcu(9)rhl_for_each_rcu(9)rhl_for_each_entry_rcu(9)rhashtable_lookup(9)rhashtable_lookup_fast(9)rhashtable_insert_fast(9)rhltable_insert_key(9)rhltable_insert(9)rhashtable_lookup_insert_fast(9)rhashtable_lookup_get_insert_fast(9)rhashtable_lookup_insert_key(9)rhashtable_lookup_get_insert_key(9)rhashtable_remove_fast(9)rhltable_remove(9)rhashtable_replace_fast(9)rhltable_walk_enter(9)rhltable_free_and_destroy(9)
okay that's the whole page, go forth and look up your hash lists responsibly bestie π§π«
sign-off vibes only: this one lives in ./include/linux, and the date on it is October 2026 β iconic, timeless, stamped and sealed ππ
π¦ 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