blk_rq_map_kern(9)
π¦ blk_rq_map_kern(9) π¦
okay bestie, welcome to the Kernel API Manual π β this is the blk_rq_map_kern(9) page, and it's giving "map kernel data to a request, for passthrough requests." no cap, we're gonna make it make sense.
β¨ NAME β¨
blk_rq_map_kern β maps kernel data onto a request, specifically for passthrough requests. iconic.
πΈ SYNOPSIS πΈ
int blk_rq_map_kern (struct request *rq , void *kbuf , unsigned int len
, gfp_t gfp_mask );
π ARGUMENTS π
rqβ request to fill. yes, this is the request getting filled, bestie.kbufβ the kernel buffer. the buffer. that's it. π«Άlenβ length of user data. literally the length of user data.gfp_maskβ memory allocation flags. the flags for allocating memory, periodt.
π§ DESCRIPTION π§
the tea: data will be mapped directly if possible. otherwise a bounce buffer is used. and you can call it multiple times to append multiple buffers. so if you need to append buffers, go off. π₯
π SEE ALSO π
Kernel file ./block/blk-map.cbio_copy_from_iter(9)bio_copy_to_iter(9)bio_uncopy_user(9)bio_copy_kern(9)blk_rq_map_user_iov(9)blk_rq_unmap_user(9)
and that's the tea π β source ./block, dated October 2026, page blk_rq_map_kern(9). periodt, bestie π
π¦ 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