devm_blk_cry...profile_init(9)
π devm_blk_cry...profile_init(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes this page lives in section 9 of it, and yes the title up top is genuinely truncated to devm_blk_cry...profile_init(9) because apparently even the kernel gets tired of typing. periodt. πβ¨
β¨ NAME β¨
devm_blk_crypto_profile_init β it's literally blk_crypto_profile_init() but with resource management energy. the devm version. the one that cleans up after itself. main character behavior fr fr π
π¦ SYNOPSIS π¦
int devm_blk_crypto_profile_init (struct device *dev , struct
blk_crypto_profile *profile , unsigned int num_slots );
like, look at that signature. three args. no notes. iconic. π
πΈ ARGUMENTS πΈ
devβ the device that owns theblk_crypto_profile. it's giving parent vibes. πprofileβ the actualblk_crypto_profileyou're initializing. this is the one getting set up. π«Άnum_slotsβ the number of keyslots. how many slots for keys? this many. that's the whole thing. π
π DESCRIPTION π
so this is "Like blk_crypto_profile_init, butβ¦" β and that but is the whole point, bestie: it also causes blk_crypto_profile_destroy to be called automatically on driver detach. you don't have to remember to tear it down yourself. the kernel handles it. no cap, it's giving main character energy and also good memory hygiene. π§β¨
β RETURN β
0 on success β slay. π
or else a negative error code β not slay. π check it. always check it.
π SEE ALSO π
kernel file ./block/blk-crypto-profile.c β that's where the magic lives, iykyk π¦
and the whole friend group:
blk-crypto profiles(9)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_intersect_capabilities(9)blk_crypto_has_capabilities(9)blk_crypto_update_capabilities(9)
go read them. all of them. obsessed. π₯
okay that's the page!! this one's from ./block, dated October 2026, and the header/footer both say devm_blk_cry...profile_init(9) β yes, still truncated, and honestly? it ate. π
π bye bestie, go init some profiles 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