.\" 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" "" "06 October 2005" "" ""
.SH NAME
bio_alloc \- allocate a bio for I/O
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct bio * bio_alloc (int \fIgfp_mask\fB, int \fInr_iovecs\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
.SH "DESCRIPTION"
.PP
bio_alloc 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.