hash_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hash_init(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for hash_init β€” the little init moment your hash table deserves πŸ’–


🌸 NAME 🌸

hash_init β€” initialize a hash table ✨

🫢 SYNOPSIS 🫢

hash_init (hashtable );

πŸŽ€ ARGUMENTS πŸŽ€

  • hashtable β€” the hashtable to be initialized. That's the whole assignment, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

It calculates the size of the hashtable from the given parameter β€” otherwise it's the same as hash_init_size πŸ’…

Real talk: this has to be a macro, because HASH_BITS will not work on pointers since it calculates the size during preprocessing. No cap, that's the whole reason 😭✨

🌈 SEE ALSO 🌈


cute little sign-off: source/version ./tools/include/linux, date October 2026 β€” that's the whole footer, bestie, periodt πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from