resize_buckets(9)
π 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:
Introduction(9)struct bucket(9)struct int_map(9)mix(9)hash_key(9)allocate_buckets(9)vdo_int_map_create(9)vdo_int_map_free(9)vdo_int_map_size(9)dereference_hop(9)insert_in_hop_list(9)select_bucket(9)search_hop_list(9)vdo_int_map_get(9)find_empty_bucket(9)move_empty_bucket(9)update_mapping(9)find_or_make_vacancy(9)vdo_int_map_put(9)vdo_int_map_remove(9)
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
- 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