bio_crypt_clone(9)
π NAME π
okay bestie, this is bio_crypt_clone(9) from the Kernel API Manual β yes, we're in kernel-API land and it's giving very specific little helper energy π
bio_crypt_clone β clone bio encryption context. That's the whole name, no cap.
β¨ SYNOPSIS β¨
int bio_crypt_clone (struct bio *dst , struct bio *src , gfp_t gfp_mask
);
π ARGUMENTS π
dstβ the destinationbio, aka where the clone is headed π«Άsrcβ the sourcebio, aka the one we're copying from πgfp_maskβ the memory allocation flags, fr fr
πΈ DESCRIPTION πΈ
If src has an encryption context, this function clones it to dst. That's it. That's the lore. iconic minimal behavior β¨
π¦ RETURN π¦
0on success π-ENOMEMif out of memory π
And listen bestie: -ENOMEM is only possible if gfp_mask doesn't include __GFP_DIRECT_RECLAIM β that's the exact caveat, don't forget it π
π SEE ALSO π
go read these besties too:
- Kernel file
./include/linux/blk-crypto.h struct blk_crypto_config(9)struct blk_crypto_key(9)struct bio_crypt_ctx(9)blk_crypto_submit_bio(9)
that's the whole page, bestie π
β source/version: ./include/linux, dated October 2026. byeee π«Άπ
π¦ 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