rht_shrink_below_30(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rht_shrink_below_30 β€” Kernel API Manual (section 9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual, section 9 β€” yes, the function-man page section, we love a numbered era. today's main character is rht_shrink_below_30, and her whole job is honestly so real of her, i'll explain ✨


🌸 NAME 🌸

rht_shrink_below_30 β€” she returns true if nelems < 0.3 * table-size πŸ¦‹

like literally that's it. that's the whole vibe check. she looks at your numbers and goes "hmm, that's less than thirty percent of the table size" and she's right every time, no cap πŸ’…


✨ SYNOPSIS ✨

bool rht_shrink_below_30 (const struct rhashtable *ht , const struct
       bucket_table *tbl );

note the return type bestie β€” bool, not int, not a pointer, a whole bool. she's decisive. she's giving main character energy. πŸ‘‘


🫢 ARGUMENTS 🫢

  • ht β€” the hash table πŸ“ (yes, ht stands for hash table, we been knew)
  • tbl β€” the current table 🌈

that's the whole cast list. two icons, one job. periodt.


πŸ”₯ SEE ALSO πŸ”₯

okay this section is long and honestly iconic for it β€” the whole rhashtable friend group showed up. every single one of them, in order, because we don't skip anyone in this house 🧚

thirty of them. thirty!! the way that she has thirty mutuals in the SEE ALSO section and still keeps it cute πŸ˜­πŸ’– iykyk


heads up bestie: rht_shrink_below_30 is the threshold check, not the shrink itself. she tells you if you're below 0.3 * table-size and returns true when you are β€” read the grow/shrink neighbours above for the rest of the story πŸ¦‹

and that's the page!! sourced from ./include/linux, dated October 2026, filed under rht_shrink_below_30(9) β€” mwah, stan her, drink water, and go read your rhashtable.h πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from