blk_rq_map_integrity_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 using blk_rq_count_integrity_sg or rq->nr_integrity_segments first, or you're gonna have a bad time 😭

🌈 SEE ALSO 🌈

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