rhashtable_..._insert_fast(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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