.\" 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 "MRAID_MM_ATTACH_BUF" "9" "09 October 2005" "" "" .SH NAME mraid_mm_attach_buf \- Attach a free dma buffer for required size .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int mraid_mm_attach_buf (mraid_mmadp_t * \fIadp\fB, uioc_t * \fIkioc\fB, int \fIxferlen\fB); \fR .SH "ARGUMENTS" .TP \fB\fIadp\fB\fR -- undescribed -- .TP \fB\fIkioc\fB\fR -- undescribed -- .TP \fB\fIxferlen\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP .PP \fIadp\fR : Adapter softstate \fIkioc\fR : kioc that the buffer needs to be attached to \fIxferlen\fR : required length for buffer .PP First we search for a pool with smallest buffer that is >= \fIxferlen\fR\&. If that pool has no free buffer, we will try for the next bigger size. If none is available, we will try to allocate the smallest buffer that is >= \fIxferlen\fR and attach it the pool.