allocate_buckets(9)
okay so this is allocate_buckets(9), straight from the Kernel API Manual π
and it's here to help your bestie understand one very specific little kernel function. no cap.
β¨ NAME β¨
allocate_buckets β initialize an int_map. that's the whole mission, bestie π«Ά
π§ SYNOPSIS π§
int allocate_buckets (struct int_map *map , size_t capacity );
πΈ ARGUMENTS πΈ
mapβ the map to initialize. yes, this is the map getting its moment β¨capacityβ the initial capacity of the map. it's literally the starting capacity π
π₯ RETURN π₯
VDO_SUCCESS or an error code. that's it, no cap π
π¦ SEE ALSO π¦
the original points you at this kernel file:
- Kernel file
./drivers/md/dm-vdo/int-map.c
and these friends, all iconic in their own right π:
Introduction(9)struct bucket(9)struct int_map(9)mix(9)hash_key(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)resize_buckets(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)
mwah π this page comes from ./drivers/md/dm-vdo, dated October 2026, and it's allocate_buckets(9) β bye bestie! π
π¦ 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