free_pbn_lock_pool(9)
π free_pbn_lock_pool(9) π Kernel API Manual
πΈ NAME πΈ
free_pbn_lock_pool β free a PBN lock pool. Thatβs the whole name, periodt. π
β¨ SYNOPSIS β¨
void free_pbn_lock_pool (struct pbn_lock_pool *pool );
π ARGUMENTS π
poolβ the lock pool to free. Thatβs the one and only arg, bestie. π«Ά
π¦ DESCRIPTION π¦
Okay so listen: this function frees a PBN lock pool. But it doesnβt just free the pool itself β it also frees all the PBN locks it allocated, no cap. π
Because of that, the caller must ensure that all locks have been returned to the pool before calling this. Like, every single lock needs to be back home first. No stragglers, no βoops I forgot oneβ energy. π
π₯ SEE ALSO π₯
Kernel file: ./drivers/md/dm-vdo/physical-zone.c
vdo_is_pbn_read_lock(9)vdo_downgrade_pbn_write_lock(9)vdo_claim_pbn_lock_increment(9)vdo_assign_pbn_lock_provisional_reference(9)vdo_unassign_pbn_lock_provisional_reference(9)release_pbn_lock_provisional_reference(9)union idle_pbn_lock(9)struct pbn_lock_pool(9)return_pbn_lock_to_pool(9)make_pbn_lock_pool(9)borrow_pbn_lock_from_pool(9)initialize_zone(9)vdo_make_physical_zones(9)vdo_free_physical_zones(9)vdo_get_physical_zone_pbn_lock(9)vdo_attempt_physical_zone_pbn_lock(9)allocate_and_lock_block(9)retry_allocation(9)continue_allocating(9)vdo_allocate_block_in_zone(9)vdo_release_physical_zone_pbn_lock(9)vdo_dump_physical_zone(9)
Mwah π cute little sign-off: source/version spot is ./drivers/md/dm-vdo, dated October 2026, serving up free_pbn_lock_pool(9) in the Kernel API Manual. Bye bestie, slay your locks responsibly! π«Άβ¨
π¦ 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