1BIOSET_CREATE(9)                 The Linux VFS                BIOSET_CREATE(9)
2
3
4

NAME

6       bioset_create - Create a bio_set
7

SYNOPSIS

9       struct bio_set * bioset_create(unsigned int pool_size,
10                                      unsigned int front_pad);
11

ARGUMENTS

13       pool_size
14           Number of bio and bio_vecs to cache in the mempool
15
16       front_pad
17           Number of bytes to allocate in front of the returned bio
18

DESCRIPTION

20       Set up a bio_set to be used with bio_alloc_bioset. Allows the caller to
21       ask for a number of bytes to be allocated in front of the bio. Front
22       pad allocation is useful for embedding the bio inside another
23       structure, to avoid allocating extra data to go with the bio. Note that
24       the bio must be embedded at the END of that structure always, or things
25       will break badly.
26
28Kernel Hackers Manual 2.6.         June 2019                  BIOSET_CREATE(9)
Impressum