is_lock_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay so bestie, this is is_lock_locked(9) from the Kernel API Manual β€” and it does exactly what it says on the tin: it checks whether a lock is locked for a zone type. Iconic behavior, honestly. πŸ’…


✨ SYNOPSIS ✨

The whole signature, no cap:

bool is_lock_locked (struct recovery_journal *journal , block_count_t
       lock_number , enum vdo_zone_type zone_type );

🌸 ARGUMENTS 🌸

  • journal β€” the recovery journal. The main character we're checking. 🫢
  • lock_number β€” the lock to check. Like, the specific one under the vibe check. πŸ”
  • zone_type β€” the type of the zone. Gotta know which zone we're in, iykyk. ✨

πŸ’– DESCRIPTION πŸ’–

So here's the tea: if the recovery journal has a lock on the lock number, then both logical and physical zones are considered locked. That's the whole rule, and it ate. πŸ’€βœ¨


πŸ¦‹ RETURN πŸ¦‹

Returns true if the specified lock has references (is locked). That's the condition, periodt. πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

Go be nosy with these, bestie β€” the whole crew is here:


🫢 that's the whole page, bestie. Cute sign-off from the source/version ./drivers/md/dm-vdo, dated October 2026 β€” periodt. πŸ’…

πŸ“¦ where this page comes from