vdo_is_pbn_read_lock(9)
π vdo_is_pbn_read_lock(9) β a Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual today and this page is literally called vdo_is_pbn_read_lock, and yes it does exactly what it says on the tin π it's giving "small function, big feelings," and honestly? obsessed.
πΈ NAME πΈ
vdo_is_pbn_read_lock β check whether a pbn_lock is a read lock. that's it. that's the whole job. she's an icon, she's a legend, she asks one (1) question and answers it π
β¨ SYNOPSIS β¨
bool vdo_is_pbn_read_lock (const struct pbn_lock *lock);
returns a bool, takes a const struct pbn_lock * named lock, no cap π«Ά
π¦ ARGUMENTS π¦
lockβ the lock you want to check. that's the one. hand her the lock, she'll tell you what's up π
β RETURN β
True if the lock is a read lock. π₯ that's the whole verdict, no drama, no extra lore, fr fr.
like a vibe check but for locks β either she's a read lock or she isn't, and this function is not here to soften the blow π
π SEE ALSO π
right so the source file for all this is the Kernel file ./drivers/md/dm-vdo/physical-zone.c β that's the mothership, go visit her π
and now the extended cinematic universe, in the exact order the page lists them, because we do not skip entries in this house:
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_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, the whole physical-zone friend group showed up to the group chat ππ«Ά read them all, iykyk.
π§ sign-off π§
this absolute banger lives in ./drivers/md/dm-vdo and the page is stamped October 2026 β so yeah, she's dated, she's sourced, she's perfect, 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