STRUCT BUCKET_TABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct bucket_table(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this page is literally struct bucket_table(9), and it’s giving β€œTable of hash buckets” main character energy. no cap. πŸ’–

🌸 NAME 🌸

struct bucket_table β€” Table of hash buckets. periodt.

πŸ¦‹ SYNOPSIS πŸ¦‹

fr fr, here’s the struct exactly as it appears β€” don’t let anyone β€œfix” the spacing on you:

struct bucket_table {
    unsigned int            size;
    unsigned int            nest;
    u32 hash_rnd;
    struct list_head        walkers;
    struct rcu_head         rcu;
    struct bucket_table *future_tbl;
    struct lockdep_map      dep_map;
    struct rhash_lock_head *buckets[];
};

πŸ’… Members πŸ’…

  • size β€” Number of hash buckets. that’s the count, bestie.
  • nest β€” Number of bits of first-level nested table.
  • hash_rnd β€” Random seed to fold into hash.
  • walkers β€” List of active walkers.
  • rcu β€” RCU structure for freeing the table.
  • future_tbl β€” Table under construction during rehashing.
  • buckets β€” size * hash buckets. yes, literally that.

πŸŽ€ SEE ALSO πŸŽ€

Kernel file: ./include/linux/rhashtable.h β€” and the whole linked-up squad is:


okay bye bestie 🫢 β€” source/version line says ./include/linux, date is October 2026, and the page is struct bucket_table(9). πŸ’–

πŸ“¦ where this page comes from