1NAND_CORRECT_DATA(9) Public Functions Provided NAND_CORRECT_DATA(9)
2
3
4
6 nand_correct_data - [NAND Interface] Detect and correct bit error(s)
7
9 int nand_correct_data(struct mtd_info * mtd, unsigned char * buf,
10 unsigned char * read_ecc,
11 unsigned char * calc_ecc);
12
14 mtd
15 MTD block structure
16
17 buf
18 raw data read from the chip
19
20 read_ecc
21 ECC from the chip
22
23 calc_ecc
24 the ECC calculated from raw data
25
27 Detect and correct a 1 bit error for 256/512 byte block
28
30 Thomas Gleixner <tglx@linutronix.de>
31 Author.
32
34Kernel Hackers Manual 2.6. June 2019 NAND_CORRECT_DATA(9)