blk_crypto_rq_bio_prep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: -ENOMEM is only possible if gfp_mask doesn'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