summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-01-09 07:07:43 +0100
committerJens Axboe <axboe@kernel.dk>2026-01-11 12:55:41 -0700
commita3cc978e61f5c909ca94a38d2daeeddc051a18e0 (patch)
treebe24e0434dab96b39df23660b39a1286e9580216 /rust/alloc/collections/git@git.tavy.me:linux.git
parentbc26e2efa2c5bb9289fa894834446840dea0bc31 (diff)
blk-crypto: add a bio_crypt_ctx() helper
This returns the bio_crypt_ctx if CONFIG_BLK_INLINE_ENCRYPTION is enabled and a crypto context is attached to the bio, else NULL. The use case is to allow safely dereferencing the context in common code without needed #ifdef CONFIG_BLK_INLINE_ENCRYPTION. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions