NAND_DO_READ_ECC

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

nand_do_read_ecc - [MTD Interface] Read data with ECC  

SYNOPSIS

"SYNOPSIS"

int nand_do_read_ecc (struct mtd_info * mtd, loff_t from, size_t len, size_t * retlen, u_char * buf, u_char * oob_buf, struct nand_oobinfo * oobsel, int flags);  

ARGUMENTS

mtd
MTD device structure
from
offset to read from
len
number of bytes to read
retlen
pointer to variable to store the number of read bytes
buf
the databuffer to put data
oob_buf
filesystem supplied oob data buffer (can be NULL)
oobsel
oob selection structure
flags
flag to indicate if nand_get_device/nand_release_device should be preformed
 

AND HOW MANY CORRECTED ERROR BITS ARE ACCEPTABLE

bits 0..7 - number of tolerable errors bit 8 - 0 == do not get/release chip, 1 == get/release chip

NAND read with ECC


 

Index

NAME
SYNOPSIS
ARGUMENTS
AND HOW MANY CORRECTED ERROR BITS ARE ACCEPTABLE

This document was created by man2html, using the manual pages.
Time: 00:02:31 GMT, October 09, 2005