blk_crypto_rq_bio_prep(9)
π blk_crypto_rq_bio_prep(9) β Kernel API Manual, section 9 π
okay so bestie, this is the Kernel API Manual page for blk_crypto_rq_bio_prep(9), and it's giving "tiny helper function with one very specific job" energy. Let's get into it β¨
πΈ NAME πΈ
blk_crypto_rq_bio_prep β Prepare a request's crypt_ctx when its first bio is inserted
Like, literally that's the whole vibe: it gets the request's crypt_ctx ready at the exact moment its first bio gets inserted. No cap. π«Ά
π SYNOPSIS π
int blk_crypto_rq_bio_prep (struct request *rq , struct bio *bio , gfp_t
gfp_mask );
π¦ ARGUMENTS π¦
rqβ The request to prepare. This is the main character request you're getting ready πbioβ The first bio being inserted into the request. First one in, bestie πgfp_maskβ Memory allocation flags. The allocation vibes, basically.
π₯ RETURN π₯
Returns 0 on success, and -ENOMEM if out of memory.
Heads up, bestie:-ENOMEMis only possible ifgfp_maskdoesn't include__GFP_DIRECT_RECLAIM. That's the fine print and we respect the fine print π
π SEE ALSO π
- Kernel file
./block/blk-crypto-internal.h
xoxo, your manpage bestie π β this one comes from source/version ./block, dated October 2026. Slay. πβ¨
π¦ 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