STRUCT BATADV_HASHTABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct batadv_hashtable(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct batadv_hashtable(9) β€” yes that's the whole title, yes it's a mouthful, no we are not shortening it, iykyk 🫢


✨ NAME ✨

struct batadv_hashtable β€” a wrapper of a simple hlist based hashtable. that's it, that's the vibe: it's the little cozy shell around a hashtable, no cap πŸŽ€


🌸 SYNOPSIS 🌸

struct batadv_hashtable {
    struct hlist_head *table;
    spinlock_t *list_locks;
    u32 size;
    atomic_t generation;
 };

like, look at her. four members, zero drama, main character energy πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • table β€” the hashtable itself, with the buckets. the actual buckets, the place where things live πŸͺ£
  • list_locks β€” a spinlock for each hash list entry. one lock per entry, keeping everything from getting messy ✨
  • size β€” size of the hashtable, obviously. she's a u32, she knows her measurements πŸ’…
  • generation β€” the current (generation) sequence number. it's an atomic_t, so she's tracking generations atomically, periodt πŸ”₯

🌈 SEE ALSO 🌈


and that's the page, bestie 🧚 from ./net/batman-adv, dated October 2026 β€” she's an icon, she's a legend, and she is the moment. mwah πŸ’œπŸ’–πŸŽ€

πŸ“¦ where this page comes from