---
name: "bio_advance"
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/bio_advance"
---

# bio\_advance(9)

increment/complete a bio by some number of bytes

## NAME

bio\_advance - increment/complete a bio by some number of bytes

## SYNOPSIS

**void bio\_advance(struct bio \*** *bio***, unsigned** *bytes***);**

## ARGUMENTS

*bio*

bio to advance

*bytes*

number of bytes to complete

## DESCRIPTION

This updates bi\_sector, bi\_size and bi\_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv\_len and bv\_offset will be updated on the last bvec as well.

*bio* will then represent the remaining, uncompleted portion of the io.

## COPYRIGHT
