blk_rq_count_integrity_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… blk_rq_count_integrity_sg(9) β€” like, the Kernel API Manual bestie ✨

okay so real talk, this is a page straight out of the Kernel API Manual and it's honestly kind of a little legend. it counts scatterlist elements. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

blk_rq_count_integrity_sg β€” counts how many integrity scatterlist elements you're gonna need πŸ’–

like, it's literally in the name. Count. Number of. Integrity scatterlist. Elements. periodt.


🌸 SYNOPSIS 🌸

int blk_rq_count_integrity_sg (struct request_queue *q , struct bio *bio );

so you call it, you hand it a queue and a bio, and it hands you back an int. that's it. that's the whole relationship πŸ’«


πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” a request queue. yep. that's the struct. struct request_queue *q. she's the queue in question πŸ‘‘
  • bio β€” a bio that has integrity metadata attached to it. no integrity metadata? then bestie what are you even doing here 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function returns the number of elements required in a scatterlist corresponding to the integrity metadata in a bio.

that's it. that's the whole description. she's short, she's sweet, she knows exactly what she's about. no cap πŸ’…

reminder: the count is for the scatterlist elements that correspond to the integrity metadata in that bio. the bio brings the metadata, the function does the math, you get an int. iconic behaviour honestly 🌈

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./block/blk-integrity.c β€” go read the source, iykyk πŸ“–βœ¨

and that's the page!! tysm for coming to my ted talk πŸ§šπŸ’œ

sign-off era: this lil beauty lives over in ./block, and the manual's dated October 2026 β€” so yeah, she's from the future AND she's booked and busy πŸŽ€β­ go count some scatterlist elements bestie, you got this πŸ’–

πŸ“¦ where this page comes from