---
name: "blk_rq_count_integrity_sg"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/blk_rq_count_integrity_sg"
---

# blk\_rq\_count\_integrity\_sg(9)

Count number of integrity scatterlist elements

## NAME

blk\_rq\_count\_integrity\_sg - Count number of integrity scatterlist elements

## SYNOPSIS

**int blk\_rq\_count\_integrity\_sg(struct request\_queue \*** *q***, struct bio \*** *bio***);**

## ARGUMENTS

*q*

request queue

*bio*

bio with integrity metadata attached

## DESCRIPTION

Returns the number of elements required in a scatterlist corresponding to the integrity metadata in a bio.

## COPYRIGHT
