vdo_get_phys...one_pbn_lock(9)
okay bestie, welcome to the Kernel API Manual page called vdo_get_phys...one_pbn_lock(9) β yes, the title is literally doing the ellipsis thing, and the actual function is vdo_get_physical_zone_pbn_lock. She's specific, she's iconic, and we're gonna get through every single detail together π
β¨
π NAME π
vdo_get_physical_zone_pbn_lock β get the lock on a PBN if one exists. That's the whole name-vibe: if there's a lock, you get it; if there isn't, you don't. Periodt.
β¨ SYNOPSIS β¨
Here's the signature, bestie β copy it exactly, no freestyling:
struct pbn_lock * vdo_get_physical_zone_pbn_lock (struct physical_zone
*zone , physical_block_number_t pbn );
π ARGUMENTS π
zoneβ the physical zone responsible for the PBN. Like, the zone that's responsible for this block number, okay?pbnβ the physical block number whose lock is desired. You want the lock for thispbn, and you're asking nicely.
π¦ RETURN π¦
You get the lock, or NULL if the PBN is not locked. That's the whole return situation β lock if locked, NULL if not locked, no cap.
π SEE ALSO π
This all lives in the Kernel file ./drivers/md/dm-vdo/physical-zone.c, and here's the whole friend group β every single one, because we do not skip the squad:
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)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_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)
okay bye bestie π«Ά this page's footer says source/version ./drivers/md/dm-vdo, dated October 2026, with the footer title vdo_get_phys...one_pbn_lock(9) β slay and goodnight ππ
π¦ 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