rhashtable_l...t_insert_key(9)
π NAME π
okay so bestie, this is the manual page for rhashtable_l...t_insert_key(9) from the Kernel API Manual β¨ β yes, the header is a little truncated, but the actual function is rhashtable_lookup_get_insert_key, and its whole job is lookup and insert object into hash table. No cap: itβs the βfind it, or put it thereβ bestie of hash-table land π
.
β¨ SYNOPSIS β¨
Hereβs the signature, verbatim because we do not mess with code π:
void * rhashtable_lookup_get_insert_key (struct rhashtable *ht , const
void *key , struct rhash_head *obj , const struct rhashtable_params
params );
π ARGUMENTS π
htβ hash table. main character table energy πkeyβ key. literally the key πobjβ pointer to hash head inside object. itβs giving objectβs hash-head hookup πͺparamsβ hash table parameters. the tableβs settings/vibes β¨
π¦ DESCRIPTION π¦
so this function is just like rhashtable_lookup_insert_key, but the return value has different lore π:
- the object exists β it returns the object. hi bestie, youβre already here π
- it does not exist and the insertion was successful β it returns
NULL. okay slay, fresh insert π± - otherwise β it returns an
ERR_PTR. not iconic, something went sideways π
π SEE ALSO π
bestie, go peek at the whole extended universe if you want the full lore π«Ά:
- 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_insert_key(9)rhashtable_remove_fast(9)rhltable_remove(9)rhashtable_replace_fast(9)rhltable_walk_enter(9)rhltable_free_and_destroy(9)
mwah π this cute lil page came from ./include/linux and is dated October 2026 β periodt. π
π¦ 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