cqhci_crypto_init(9)
π cqhci_crypto_init(9) β from the Kernel API Manual bestie, no cap
Okay so this is a page from the Kernel API Manual, and honestly? It's a little one but it does things, so let's get into it π
β¨ NAME β¨
cqhci_crypto_init β the function that gets CQHCI crypto support up and running, periodt π«
π¦ SYNOPSIS π¦
int cqhci_crypto_init (struct cqhci_host *cq_host );
πΈ ARGUMENTS πΈ
cq_hostβ a cqhci host π«Ά that's the one and only thing you hand it
π DESCRIPTION π
So here's the vibe check π
: if the driver already set MMC_CAP2_CRYPTO, and the CQE declares CQHCI_CAP_CS, then this thing goes ahead and initializes the crypto support β¨
And what does "initializing the crypto support" actually involve? Bestie, I'm so glad you asked:
- reading the crypto capability registers π
- initializing the
blk_crypto_profile - clearing all the keyslots π§Ή (yes, all of them, every single one)
- enabling 128-bit task descriptors π
It's giving "setup montage"... iconic honestly π
π₯ RETURN π₯
0π β crypto was initialized or it just isn't supported. Wondering which one it is? Check whetherMMC_CAP2_CRYPTOis still set β that flag is literally the answer key π- a negative
errnovalue π β on an unexpected error, because sometimes things just don't slay
Lowkey important: 0 doesn't mean "yes crypto happened" β it means "either it happened or it couldn't, and the flag tells you which." Don't get it twisted π
β SEE ALSO β
- kernel file
./drivers/mmc/host/cqhci-crypto.cβ go read it, iykyk π
And that's the whole page, bestie π§ Signing off from ./drivers/mmc/host, dated October 2026, straight out of the Kernel API Manual π Slay 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