.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "BIO_ALLOC_BIOSET" "9" "09 October 2005" "" ""
.SH NAME
bio_alloc_bioset \- allocate a bio for I/O
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct bio * bio_alloc_bioset (unsigned int __nocast \fIgfp_mask\fB, int \fInr_iovecs\fB, struct bio_set * \fIbs\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIgfp_mask\fB\fR
the GFP_ mask given to the slab allocator
.TP
\fB\fInr_iovecs\fB\fR
number of iovecs to pre-allocate
.TP
\fB\fIbs\fB\fR
the bio_set to allocate from
.SH "DESCRIPTION"
.PP
bio_alloc_bioset will first try it's on mempool to satisfy the allocation.
If __GFP_WAIT is set then we will block on the internal pool waiting
for a &struct bio to become free.
.PP
allocate bio and iovecs from the memory pools specified by the
bio_set structure.