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

# bioset\_create(9)

Create a bio\_set

## NAME

bioset\_create - Create a bio\_set

## SYNOPSIS

**struct bio\_set \* bioset\_create(unsigned int** *pool\_size***, unsigned int** *front\_pad***);**

## ARGUMENTS

*pool\_size*

Number of bio and bio\_vecs to cache in the mempool

*front\_pad*

Number of bytes to allocate in front of the returned bio

## DESCRIPTION

Set up a bio\_set to be used with *bio\_alloc\_bioset*. Allows the caller to ask for a number of bytes to be allocated in front of the bio. Front pad allocation is useful for embedding the bio inside another structure, to avoid allocating extra data to go with the bio. Note that the bio must be embedded at the END of that structure always, or things will break badly.

## COPYRIGHT
