.\" 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 "NAND_PREPARE_OOBBUF" "9" "09 October 2005" "" "" .SH NAME nand_prepare_oobbuf \- [GENERIC] Prepare the out of band buffer .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp u_char * nand_prepare_oobbuf (struct mtd_info * \fImtd\fB, u_char * \fIfsbuf\fB, struct nand_oobinfo * \fIoobsel\fB, int \fIautoplace\fB, int \fInumpages\fB); \fR .SH "ARGUMENTS" .TP \fB\fImtd\fB\fR MTD device structure .TP \fB\fIfsbuf\fB\fR buffer given by fs driver .TP \fB\fIoobsel\fB\fR out of band selection structre .TP \fB\fIautoplace\fB\fR 1 = place given buffer into the oob bytes .TP \fB\fInumpages\fB\fR number of pages to prepare .SH "RETURN" .PP 1. Filesystem buffer available and autoplacement is off, return filesystem buffer 2. No filesystem buffer or autoplace is off, return internal buffer 3. Filesystem buffer is given and autoplace selected put data from fs buffer into internal buffer and retrun internal buffer .SH "NOTE" .PP The internal buffer is filled with 0xff. This must be done only once, when no autoplacement happens Autoplacement sets the buffer dirty flag, which forces the 0xff fill before using the buffer again.