blk_crypto_...ram_all_keys(9)
π blk_crypto_reprogram_all_keys(9) π
okay bestie, welcome to the Kernel API Manual entry for blk_crypto_reprogram_all_keys(9) β yes that trunc-y looking header is just the man page being dramatic, the real name is right there in a sec β¨
πΈ NAME πΈ
blk_crypto_reprogram_all_keys β re-program all the keyslots. every single one. no keyslot left behind π
π¦ SYNOPSIS π¦
void blk_crypto_reprogram_all_keys (struct blk_crypto_profile *profile);
that's it, that's the whole signature β returns nothing (void, she's not giving you an exit code, she's just doing the thing) π
π ARGUMENTS π
profileβ the crypto profile. that's it. that's the one argument. she's low maintenance like that π«Ά
β DESCRIPTION β
so what she does is: she re-programs all the keyslots that are supposed to have a key programmed. like, every slot whose whole personality is "I have a key in me" gets that key re-set. π₯
and here's the important part, no cap: this is intended only for use by drivers for hardware that loses its keys on reset. that's the entire vibe check for this function. if your hardware doesn't forget its keys on reset, this is not your girl β it's a very specific rescue mission, not a general-purpose errand π
π CONTEXT π
process context, periodt. and heads up: she takes and releases profile->lock. so like, be normal about it β she's handling the locking herself, you don't need to do it, but also don't go doing something weird while she's holding it π
π SEE ALSO π
the kernel file ./block/blk-crypto-profile.c (iykyk, that's where the source lives), plus all these besties:
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_derive_sw_secret(9)blk_crypto_intersect_capabilities(9)blk_crypto_has_capabilities(9)blk_crypto_update_capabilities(9)
go read those if you want the full lore π
ngl bestie this one is short but she's iconic β re-program those keyslots, respect the reset, and let her handle the lock π
and that's the whole page!! this lil gem lives over in ./block and the docs are dated October 2026 β mwah, go forth and re-program responsibly π§ππ
π¦ 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