STRUCT PBN_LOCK_POOL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct pbn_lock_pool(9) β€” the kernel API manual bestie πŸ’–

okay so we're diving into struct pbn_lock_pool(9) today, from the Kernel API Manual, and honestly? it's giving "humble little data structure that carries the whole team." no cap. stay with me 🫢


✨ NAME ✨

struct pbn_lock_pool β€” literally just a list of PBN locks. that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

struct pbn_lock_pool {
    size_t capacity;
    size_t borrowed;
    struct list_head idle_list;
    idle_pbn_lock locks[];
};

look at her. four fields. immaculate. 🌸


✨ Members ✨

  • capacity β€” the number of locks that were allocated for the pool. like, how many seats are in the venue, bestie. πŸŽ€
  • borrowed β€” the number of locks that are currently borrowed from the pool. who's out on loan rn. πŸ‘€
  • idle_list β€” a list containing all the idle PBN lock instances. the ones just chilling, not doing anything, living their best life. πŸ¦‹
  • locks β€” the memory for all the locks this pool allocated. it's the actual storage, the whole point. πŸ”₯

✨ Description ✨

okay so real talk: the lock pool is little more than the memory that's been allocated for the locks. that's it. that's the description. she's lowkey minimal and I respect it so much. πŸ’€βœ¨


✨ SEE ALSO ✨

bestie, this list is long and every single one of these matters, so let's go, no skipping, we're doing all of them: 🧚

the kernel file ./drivers/md/dm-vdo/physical-zone.c, plus:

go read them all, iykyk πŸ‘‘


that's the whole page, bestie β€” every field, every cross-reference, nothing dropped. periodt. πŸ’œ

and that's a wrap on struct pbn_lock_pool(9) from the kernel's ./drivers/md/dm-vdo corner of the world, dated October 2026 β€” mwah, go touch some locks (responsibly) πŸ“πŸŒˆβ­

πŸ“¦ where this page comes from