rhashtable_l...p_insert_key(9)
πΈ rhashtable_l...p_insert_key(9) πΈ
okay so bestie, this is a page straight out of the Kernel API Manual β yes, the real one, section 9, kernel-space girlies only π
β and it's all about rhashtable_lookup_insert_key. Cute name, right? It literally says what it does: look it up, insert it, with an explicit key. Periodt.
β¨ NAME β¨
rhashtable_lookup_insert_key β search and insert object to hash table with explicit key πβ
Like, you're doing both things. At once. Main character energy.
π SYNOPSIS π
int rhashtable_lookup_insert_key (struct rhashtable *ht , const void
*key , struct rhash_head *obj , const struct rhashtable_params params );
She returns an int, she takes four things, she's booked and busy π¦
π ARGUMENTS π
htβ hash table. the vibes container, the whole point π«Άkeyβ key. the key. the thing you're keying on. iconic behavior honestlyobjβ pointer to hash head inside object. note: inside the object, bestie, it's embedded, don't go allocating a separate one πparamsβ hash table parameters. the settings, the config, the little rules of the universe this table lives in β¨
π DESCRIPTION π
Lookups may occur in parallel with hashtable mutations and resizing. no cap β she's built concurrent, so reading and messing with the table can happen at the same time ππ₯
Will trigger an automatic deferred table resizing if residency in the table grows beyond 70%. that's the threshold, and she will act on it π
Returns zero on success. zero = slay, we love that for you π
π¦ SEE ALSO π¦
okay this list is long, hydrate first π β from the Kernel file ./include/linux/rhashtable.h:
struct 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)rhltable_lookup(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_get_insert_key(9)rhashtable_remove_fast(9)rhltable_remove(9)rhashtable_replace_fast(9)rhltable_walk_enter(9)rhltable_free_and_destroy(9)
go read all thirty of them. i'll wait. mwah π
source: ./include/linux Β· date: October 2026 Β· manual: rhashtable_l...p_insert_key(9) β that's the whole page bestie, go forth and insert responsibly π§ββοΈβπ
π¦ 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