make_pbn_lock_pool(9)
β¨ NAME β¨
okay so bestie, welcome to the make_pbn_lock_pool(9) page from the Kernel API Manual π. This function is literally here to create a new PBN lock pool and all the lock instances it can loan out β¨. That's the whole vibe: new pool, plus every lock instance it can hand out. No cap.
π SYNOPSIS π
int make_pbn_lock_pool (size_t capacity , struct pbn_lock_pool **pool_ptr );
π ARGUMENTS π
capacityβ the number of PBN locks to allocate for the pool. It's the lock headcount, periodt π .pool_ptrβ a pointer to receive the new pool. Basically the spot where the new pool gets dropped off π«Ά.
π₯ RETURN π₯
Returns VDO_SUCCESS or an error code. That's it, that's the tea ββ¨. If it's not VDO_SUCCESS, bestie, it's an error code β no cap π.
π SEE ALSO π
if you're in your research era, these are the linked lore drops π:
- 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)free_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)
byeee bestie π«Ά β this page's source/version is ./drivers/md/dm-vdo, and it's dated October 2026 π. mwah, catch you in the next man page π
π¦ 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