hash_del(9)
π hash_del β the "okay bye bestie" of the kernel hashtable world π
Hiii so this is a page from the Kernel API Manual (section 9, kernel API, iykyk) and it's about hash_del, which is literally the breakup function for hashtables. You're welcome.
πΈ NAME πΈ
hash_del β remove an object from a hashtable π«Ά
Okay so picture this: your object is at the party (the hashtable), and hash_del is the friend who walks it to the door. Politely. No drama. It just... un-alives the link. β¨
π SYNOPSIS π
void hash_del (struct hlist_node *node );
That's it. That's the whole signature. Returns void, meaning it gives you nothing back β no return code, no little status report, no "did it work?" text. It just does the thing. Lowkey iconic. π
π¦ ARGUMENTS π¦
nodeβ thestruct hlist_nodeof the object you want to remove. That's the one and only argument, bestie. Point it at the node, and the node is out. πͺπ¨
Main character energy: node is the only thing you have to hand over. No hashtable pointer, no table size, no flags, no extra paperwork. Just the node. Slay.
π SEE ALSO π
These are the other girls in the group chat β all of them live in the kernel file ./tools/include/linux/hashtable.h, so go say hi:
hash_init(9)hash_add(9)hash_hashed(9)hash_empty(9)hash_for_each(9)hash_for_each_safe(9)hash_for_each_possible(9)hash_for_each_possible_safe(9)
Like, if hash_del is the "removing" one, hash_add is the "putting in" one and hash_init is the "setting up the whole vibe from scratch" one. They're a set. Collect them all. π
Heads up bestie:hash_deltakes just thestruct hlist_node *β that's the whole spec this page gives you. Don't go assuming extra behaviour that isn't written here, fr fr. π
π that's a wrap π
This absolute gem comes from the source path ./tools/include/linux and the version/date stamp on it is October 2026 β so like, mark your calendar, mwah π. Page name: hash_del(9). Go forth and un-link responsibly, bestie. π§βπ
π¦ 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