rht_grow_above_max(9)
π rht_grow_above_max β the manual, but make it make sense π
okay so bestie, this page is from the Kernel API Manual (yes, the kernel has its own manual pages, we love a documented king π), and it's about one tiny lil function that answers one very specific question. Let's get into it β¨
β¨ NAME β¨
rht_grow_above_max β returns true if table is above maximum π«Ά
Like, that's it. That's the whole job. It looks at your table and is like "bestie⦠you're past the limit" and hands you back a true. Iconic, lowkey.
πΈ SYNOPSIS πΈ
bool rht_grow_above_max (const struct rhashtable *ht , const struct bucket_table *tbl );
it takes two pointers, both const (respectful, doesn't touch anything, we stan), and gives you back a bool. simple. clean. no cap π
π¦ ARGUMENTS π¦
htβ the hash table π (this one's the whole vibe, the main character)tblβ the current table β¨ (the specific table it's checking rn)
π SEE ALSO π
okay this list is long long, so buckle up bestie, we're going through all of them, no skipping, fr fr π§
- the kernel file
./include/linux/rhashtable.hπ (this is the source of truth, iykyk) struct bucket_table(9)β the actual struct behindtbl, go say hirht_grow_above_75(9)rht_shrink_below_30(9)rht_grow_above_100(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)
likeβ¦ that's the whole rhashtable cinematic universe π every rht_ and rhl_ and rhashtable_ you could ever want. read them all, they're all (9) section, they all ate π
real talk though: this page only tells you whatrht_grow_above_maxreturns βtrueif the table is above maximum. any extra behaviour you're curious about lives in those other pages, not here. don't @ me, i don't make the rules π
and that's the tea β this one's filed under ./include/linux in the Kernel API Manual, dated October 2026 β so yeah, future-dated lore, very main character energy β bye bestie, go read rht_grow_above_75(9) next, it's the sequel π
π¦ 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