resize_buckets(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… resize_buckets(9) β€” like, the kernel API manual page, bestie

okay so this is resize_buckets(9), straight out of the kernel API manual, and it's literally the glow-up episode for your hash map ✨


🌸 NAME 🌸

resize_buckets β€” increase the number of hash buckets. that's it. that's the whole vibe. more buckets, more room, she's expanding her brand πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int resize_buckets (struct int_map *map );
yes the spacing in there is exactly like that, don't @ me, copy it verbatim periodt 🫢

✨ ARGUMENTS ✨

  • map β€” the map to resize. this one. the int map in question. she's the main character of this whole operation πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what actually happens? resize_buckets resizes and rehashes all the existing entries, storing them in the new buckets. like a whole closet reorganisation but for hashes 🧚

no cap β€” every single entry gets moved and rehashed. none of them are getting left behind. slay.

🌈 RETURN 🌈

VDO_SUCCESS or an error code. so like… either she ate, or something went wrong and you get an error code back 😭 check it, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/md/dm-vdo/int-map.c β€” plus the whole squad:

like, the whole friend group, honestly πŸ’œ


and that's the page! brought to you by ./drivers/md/dm-vdo, dated October 2026 β€” see you in the next man page, bestie, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from