.\" 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_DO_READ_ECC" "9" "09 October 2005" "" ""
.SH NAME
nand_do_read_ecc \- [MTD Interface] Read data with ECC
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int nand_do_read_ecc (struct mtd_info * \fImtd\fB, loff_t \fIfrom\fB, size_t \fIlen\fB, size_t * \fIretlen\fB, u_char * \fIbuf\fB, u_char * \fIoob_buf\fB, struct nand_oobinfo * \fIoobsel\fB, int \fIflags\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImtd\fB\fR
MTD device structure
.TP
\fB\fIfrom\fB\fR
offset to read from
.TP
\fB\fIlen\fB\fR
number of bytes to read
.TP
\fB\fIretlen\fB\fR
pointer to variable to store the number of read bytes
.TP
\fB\fIbuf\fB\fR
the databuffer to put data
.TP
\fB\fIoob_buf\fB\fR
filesystem supplied oob data buffer (can be NULL)
.TP
\fB\fIoobsel\fB\fR
oob selection structure
.TP
\fB\fIflags\fB\fR
flag to indicate if nand_get_device/nand_release_device should be preformed
.SH "AND HOW MANY CORRECTED ERROR BITS ARE ACCEPTABLE"
.PP
bits 0..7 - number of tolerable errors
bit 8 - 0 == do not get/release chip, 1 == get/release chip
.PP
NAND read with ECC