batadv_hash_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

batadv_hash_new(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for batadv_hash_new, and it’s literally the β€œallocate and clear a hashtable” function. it’s giving foundational, no cap ✨


🌸 NAME 🌸

batadv_hash_new β€” Allocates and clears the hashtable πŸŽ€


✨ SYNOPSIS ✨

struct batadv_hashtable * batadv_hash_new (u32 size );

πŸŽ€ ARGUMENTS πŸŽ€

  • size β€” number of hash buckets to allocate πŸͺ£ β€” that’s the bucket count, bestie, fr fr.

πŸ’– RETURN πŸ’–

newly allocated hashtable, NULL on errors 😭 β€” so like, you get the fresh new hashtable, or NULL if it goes sideways.


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/batman-adv/hash.c β€” plus these iconic besties: batadv_hash_init(9), batadv_hash_destroy(9), batadv_hash_set_lock_class(9) 🫢✨


mwah πŸ’‹ β€” source/version is ./net/batman-adv, dated October 2026, page batadv_hash_new(9).

πŸ“¦ where this page comes from