blk_crypto_...capabilities(9)
β¨ blk_crypto_...capabilities(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one is literally a page about blk_crypto_intersect_capabilities and it's shorter than my attention span, so let's go πΈ
π NAME π
blk_crypto_intersect_capabilities β restrict supported crypto capabilities by child device π
like, the parent device doesn't get to keep any fancy crypto tricks that the child device can't do. intersection, bestie. girl math but for capabilities β¨
π¦ SYNOPSIS π¦
void blk_crypto_intersect_capabilities (struct blk_crypto_profile
*parent , const struct blk_crypto_profile *child );
no return value, no drama, it just returns void and vibes π
π ARGUMENTS π
parentβ the crypto profile for the parent device π this is the one that gets its capabilities trimmed.childβ the crypto profile for the child device, orNULL. yes,NULLis a valid mood here π
π DESCRIPTION π
So here's the tea, bestie π this clears all crypto capabilities in parent that aren't set in child. literally anything the child doesn't support? gone. not invited to the group chat anymore π
And if child is NULL? then this clears ALL parent capabilities. every single one. not me wiping the whole slate π
β οΈ Only use this when setting up the crypto profile for a layered device, before it's been exposed yet. like, do NOT come in here trying this on a device that's already out there living its main character life β that's not the vibe and the page says so directly π«Ά
β SEE ALSO β
Kernel file ./block/blk-crypto-profile.c (iykyk π₯), plus these iconic siblings:
blk-crypto profiles(9)blk_crypto_profile_init(9)devm_blk_crypto_profile_init(9)blk_crypto_keyslot_index(9)blk_crypto_get_keyslot(9)blk_crypto_put_keyslot(9)blk_crypto_reprogram_all_keys(9)blk_crypto_derive_sw_secret(9)blk_crypto_has_capabilities(9)blk_crypto_update_capabilities(9)
π§ and that's the whole page, bestie! this masterpiece lives in ./block, dated October 2026, and it's part of the Kernel API Manual β go forth and intersect those capabilities πβ¨
π¦ 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