---
name: "bio_copy_data"
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_copy_data"
---

# bio\_copy\_data(9)

copy contents of data buffers from one chain of bios to another

## NAME

bio\_copy\_data - copy contents of data buffers from one chain of bios to another

## SYNOPSIS

**void bio\_copy\_data(struct bio \*** *dst***, struct bio \*** *src***);**

## ARGUMENTS

*dst*

destination bio list

*src*

source bio list

## DESCRIPTION

If *src* and *dst* are single bios, bi\_next must be NULL - otherwise, treats *src* and *dst* as linked lists of bios.

Stops when it reaches the end of either *src* or *dst* - that is, copies min(src-\>bi\_size, dst-\>bi\_size) bytes (or the equivalent for lists of bios).

## COPYRIGHT
