bd_may_claim(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

bd_may_claim β€” test whether a block device can be claimed

okay so bestie, this is bd_may_claim(9) from the Kernel API Manual, and it's literally here to answer one question: can this block device be claimed? 🫢✨

🌸 SYNOPSIS 🌸

bool bd_may_claim (struct block_device *bdev , void *holder , const
       struct blk_holder_ops *hops );

πŸŽ€ ARGUMENTS πŸŽ€

  • bdev β€” the block device of interest; the one we're checking on πŸ‘€
  • holder β€” the holder trying to claim bdev; like, they're asking "can I have this?" πŸ™ˆ
  • hops β€” the holder ops. that's the ops for the holder, periodt πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Test whether bdev can be claimed by holder. that's it, that's the whole vibe check ✨

🌈 RETURN 🌈

true if bdev can be claimed, false otherwise. no cap πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./block/bdev.c β€” that's the source spot, iykyk πŸ‘€


mwah πŸ’‹ β€” this one's from ./block, dated October 2026. stay iconic, bestie 🫢✨

πŸ“¦ where this page comes from