---
name: "bio_chain"
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_chain"
---

# bio\_chain(9)

chain bio completions

## NAME

bio\_chain - chain bio completions

## SYNOPSIS

**void bio\_chain(struct bio \*** *bio***, struct bio \*** *parent***);**

## ARGUMENTS

*bio*

the target bio

*parent*

the *bio*'s parent bio

## DESCRIPTION

The caller won't have a bi\_end\_io called when *bio* completes - instead, *parent*'s bi\_end\_io won't be called until both *parent* and *bio* have completed; the chained bio will also be freed when it completes.

The caller must not set bi\_private or bi\_end\_io in *bio*.

## COPYRIGHT
