bd_may_claim(9)
π 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 claimbdev; 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 π
bdev_validate_blocksize(9)bdev_freeze(9)bdev_thaw(9)bdev_deny_freeze(9)bdev_allow_freeze(9)bd_prepare_to_claim(9)bd_finish_claiming(9)bd_abort_claiming(9)bdev_open(9)bdev_yield_claim(9)bdev_fput(9)lookup_bdev(9)bdev_mark_dead(9)
mwah π β this one's from ./block, dated October 2026. stay iconic, bestie π«Άβ¨
π¦ 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