kho_block_set_grow(9)
π kho_block_set_grow(9) β like, the Kernel API Manual edition π
okay so bestie, welcome to kho_block_set_grow(9) from the Kernel API Manual β this is the girl whose whole job is making room when your block set is about to get Too Full π
β¨ NAME β¨
kho_block_set_grow β expand the block set so it can actually fit the target count π«Ά
π¦ SYNOPSIS π¦
int kho_block_set_grow (struct kho_block_set *bs , u64 count );
πΈ ARGUMENTS πΈ
bsβ the block set. your main character, the one getting the glow-up πcountβ the target number of valid entries you're tryna accommodate. like, how many besties are coming to the party π
π DESCRIPTION π
So here's the vibe: if the target entry count is bigger than the set's current total capacity, this function dynamically preallocates and links preserved memory blocks π₯ Not me doing all that so they're available during serialization/deserialization β no cap, that's literally the whole point π§
π₯ CONTEXT π₯
ngl this one is a must: caller has to hold a lock protecting the block set. no lock, no entry, iykyk ππ
β RETURN β
0 on success, or a negative errno on failure. slay when it's zero, sad girl hours when it's negative π
π SEE ALSO π
- Kernel file
./kernel/liveupdate/kho_block.c KHO Serialization Blocks(9)kho_block_set_init(9)kho_block_set_shrink(9)kho_block_set_restore(9)kho_block_set_destroy(9)kho_block_set_clear(9)kho_block_set_it_init(9)kho_block_set_it_reserve_entry(9)kho_block_set_it_read_entry(9)kho_block_set_it_prev(9)
and that's the whole page babes π« brought to you from ./kernel/liveupdate, dated October 2026 β the manpage ate and left absolutely no crumbs πβ¨
π¦ 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