rhashtable_l...t_insert_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


mwah πŸ’‹ this cute lil page came from ./include/linux and is dated October 2026 β€” periodt. πŸŽ€

πŸ“¦ where this page comes from