Scroll to navigation

NAND_CALCULATE_ECC(9) Public Functions Provided NAND_CALCULATE_ECC(9)

NAME

nand_calculate_ecc - [NAND Interface] Calculate 3-byte ECC for 256/512-byte block

SYNOPSIS

int nand_calculate_ecc(struct mtd_info * mtd, const unsigned char * buf, unsigned char * code);

ARGUMENTS

struct mtd_info * mtd

MTD block structure

const unsigned char * buf

input buffer with raw data

unsigned char * code

output buffer with ECC

AUTHOR

Thomas Gleixner <tglx@linutronix.de>

Author.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11