---
name: "bio_get_nr_vecs"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/bio_get_nr_vecs"
---

# bio\_get\_nr\_vecs(9)

return approx number of vecs

## NAME

bio\_get\_nr\_vecs - return approx number of vecs

## SYNOPSIS

**int bio\_get\_nr\_vecs(struct block\_device \*** *bdev***);**

## ARGUMENTS

*bdev*

I/O target

## DESCRIPTION

Return the approximate number of pages we can send to this target. There's no guarantee that you will be able to fit this number of pages into a bio, it does not account for dynamic restrictions that vary on offset.

## COPYRIGHT
