STRUCT BIO_CRYPT_CTX(9)
π
struct bio_crypt_ctx(9) π
okay so literally welcome to the Kernel API Manual, bestie β this page is about struct bio_crypt_ctx, and itβs giving βtiny but importantβ energy. No cap. π«Ά
πΈ NAME πΈ
struct bio_crypt_ctx β an inline encryption context. Thatβs the whole vibe: inline encryption, in one struct. β¨
β¨ SYNOPSIS β¨
Hereβs the struct, exactly as it shows up, bestie:
struct bio_crypt_ctx {
const struct blk_crypto_key *bc_key;
u64 bc_dun[BLK_CRYPTO_DUN_ARRAY_SIZE];
};
Lowkey thatβs it. Highkey iconic. π
π«Ά Members π«Ά
bc_keyβ the key, algorithm, and data unit size to use. π Like, the whole βwhat key are we usingβ situation.bc_dunβ the data unit number (starting IV) to use. π’ Yes, starting IV. Keep that detail, bestie.
π DESCRIPTION π
A bio_crypt_ctx specifies that the contents of the bio will be encrypted (for write requests) or decrypted (for read requests) inline by the storage device or controller, or by the crypto API fallback. π«Ά
So, group-chat translation: this struct is the note that says the bioβs contents get encrypted for write requests or decrypted for read requests, inline by the storage device or controller, or by the crypto API fallback. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/blk-crypto.h struct blk_crypto_config(9)struct blk_crypto_key(9)blk_crypto_submit_bio(9)bio_crypt_clone(9)
mwah π β this page is from ./include/linux, dated October 2026, and itβs literally struct bio_crypt_ctx(9), periodt. π«Άβ¨
π¦ 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