hash_init(9)
π 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 π
- Kernel file
./tools/include/linux/hashtable.h hash_add(9)hash_hashed(9)hash_empty(9)hash_del(9)hash_for_each(9)hash_for_each_safe(9)hash_for_each_possible(9)hash_for_each_possible_safe(9)
cute little sign-off: source/version ./tools/include/linux, date October 2026 β that's the whole footer, bestie, periodt π
β¨π«Ά
π¦ 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