nand_do_read_ecc — [MTD Interface] Read data with ECC
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); |
mtdMTD device structure
fromoffset to read from
lennumber of bytes to read
retlenpointer to variable to store the number of read bytes
bufthe databuffer to put data
oob_buffilesystem supplied oob data buffer (can be NULL)
oobseloob selection structure
flagsflag to indicate if nand_get_device/nand_release_device should be preformed