hash_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct hlist_node of 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:

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_del takes just the struct 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