STRUCT BUCKET_TABLE(9)
β¨ 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:
rht_grow_above_75(9)rht_shrink_below_30(9)rht_grow_above_100(9)rht_grow_above_max(9)rht_for_each_from(9)rht_for_each(9)rht_for_each_entry_from(9)rht_for_each_entry(9)rht_for_each_entry_safe(9)rht_for_each_rcu_from(9)rht_for_each_rcu(9)rht_for_each_entry_rcu_from(9)rht_for_each_entry_rcu(9)rhl_for_each_rcu(9)rhl_for_each_entry_rcu(9)rhashtable_lookup(9)rhashtable_lookup_fast(9)rhltable_lookup(9)rhashtable_insert_fast(9)rhltable_insert_key(9)rhltable_insert(9)rhashtable_lookup_insert_fast(9)rhashtable_lookup_get_insert_fast(9)rhashtable_lookup_insert_key(9)rhashtable_lookup_get_insert_key(9)rhashtable_remove_fast(9)rhltable_remove(9)rhashtable_replace_fast(9)rhltable_walk_enter(9)rhltable_free_and_destroy(9)
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
- 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