.\" 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 "KFIFO_ALLOC" "9" "09 October 2005" "" "" .SH NAME kfifo_alloc \- allocates a new FIFO and its internal buffer .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct kfifo * kfifo_alloc (unsigned int \fIsize\fB, unsigned int __nocast \fIgfp_mask\fB, spinlock_t * \fIlock\fB); \fR .SH "ARGUMENTS" .TP \fB\fIsize\fB\fR the size of the internal buffer to be allocated. .TP \fB\fIgfp_mask\fB\fR get_free_pages mask, passed to \fBkmalloc\fR .TP \fB\fIlock\fB\fR the lock to be used to protect the fifo buffer .SH "DESCRIPTION" .PP The size will be rounded-up to a power of 2.