blk_rq_map_integrity_sg(9)
π blk_rq_map_integrity_sg(9) π
okay so bestie, welcome to the Kernel API Manual β this one's short and sweet and honestly kind of a vibe. let's get into it β¨
πΈ NAME πΈ
blk_rq_map_integrity_sg β literally maps integrity metadata into a scatterlist. that's the whole job. no cap π«Ά
π¦ SYNOPSIS π¦
int blk_rq_map_integrity_sg (struct request *rq , struct scatterlist
*sglist );
π ARGUMENTS π
rqβ the request you're mapping. it's giving "main character", it's the thing everything's about πsglistβ the target scatterlist. this is where the mapped stuff lands, bestie π
β¨ DESCRIPTION β¨
so what it does: it takes the integrity vectors sitting inside the request and maps them into a scatterlist. that's it, that's the function π₯
β οΈ but listen β the scatterlist must be big enough to hold all elements. like, all of them. no slacking. that is to say, size it usingblk_rq_count_integrity_sgorrq->nr_integrity_segmentsfirst, or you're gonna have a bad time π
π SEE ALSO π
- Kernel file
./block/blk-mq-dma.c blk_rq_dma_map_iter_start(9)blk_rq_dma_map_iter_next(9)blk_rq_integrity_dma_map_iter_start(9)blk_rq_integrity_dma_map_iter_next(9)
go read those, iykyk π
mwah π this lil page lives in ./block and it's dated October 2026 β periodt, that's the whole manual, 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