rhashtable_..._insert_fast(9)
π rhashtable_..._insert_fast(9) β a Kernel API Manual moment π
okay so bestie, buckle in, because we're reading a kernel manpage together and honestly? it's giving main character energy. this one lives in the Kernel API Manual, and the function's government name is rhashtable_lookup_get_insert_fast β¨
πΈ NAME πΈ
rhashtable_lookup_get_insert_fast β lookup and insert object into hash table π¦
like, it looks the thing up and shoves it in if it's not there. multitasking icon behavior, no cap.
β¨ SYNOPSIS β¨
void * rhashtable_lookup_get_insert_fast (struct rhashtable *ht , struct
rhash_head *obj , const struct rhashtable_params params );
yes it returns a void *, yes the spacing is exactly like that, i don't make the rules π
π«Ά ARGUMENTS π«Ά
htβ the hash table. the whole vibe container, she's the main character here πobjβ pointer to the hash head inside the object. like, the little handle that lives inside your actual object πparamsβ the hash table parameters. the settings, the preferences, the little personality traits π
π DESCRIPTION π
so literally just like rhashtable_lookup_insert_fast, except this one is a little chatterbox that tells you what happened. here's the tea π:
- if the object exists, you get the object back
- if it did not exist and the insertion was successful, you get
NULL - otherwise, you get an
ERR_PTR
so yeah β read the return value, bestie, don't just assume it worked. ERR_PTR is right there waiting to humble you π
π SEE ALSO π
the whole friend group, fr fr. also, 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_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)
ok that's genuinely the whole page, there is no OPTIONS section, no EXIT STATUS, nothing else hiding. we ate and left no crumbs π₯
and that's a wrap, bestie π§π this one comes from ./include/linux, dated October 2026 β catch you in the next man page, 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