vdo_downgrad...n_write_lock(9)
π vdo_downgrade_pbn_write_lock β the Kernel API Manual glow-up β¨
okay bestie, welcome to the Kernel API Manual entry for vdo_downgrade_pbn_write_lock(9) β yes the title gets abbreviated all cute as vdo_downgrad...n_write_lock(9), that's just how the man page wears its name π
πΈ NAME πΈ
vdo_downgrade_pbn_write_lock β it literally downgrades a PBN write lock into a PBN read lock. that's the whole vibe. no cap. π₯
β¨ SYNOPSIS β¨
void vdo_downgrade_pbn_write_lock (struct pbn_lock *lock , bool compressed_write );
π¦ ARGUMENTS π¦
lockβ the PBN write lock you're downgrading, bestie. that's the one. the main character of this operation πcompressed_writeβ abool. it'sTrueif the block that got written was a compressed block. literally just tells you whether compression was involved π«Ά
π DESCRIPTION π
so here's the tea β β the lock holder count gets cleared. that's it, that's the move. and then? the caller is responsible for setting the new count. not the function, not the kernel, you. the caller. that's on you, babe ππ
π SEE ALSO π
the whole friend group, fr fr β and heads up, these all live in the kernel file ./drivers/md/dm-vdo/physical-zone.c π§
vdo_is_pbn_read_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_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)
like, that's the entire group chat and they ALL ate ππ₯
π the sign-off π
this lil beauty comes to you from ./drivers/md/dm-vdo, dated October 2026 β and the page answers to vdo_downgrad...n_write_lock(9) if you ever need to find it again. go off, king. periodt. πβπ
π¦ 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