Scroll to navigation

NAND_READ(9) Internal Functions Provided NAND_READ(9)

NAME

nand_read - [MTD Interface] MTD compatibility function for nand_do_read_ecc

SYNOPSIS

int nand_read(struct mtd_info * mtd, loff_t from, size_t len, size_t * retlen, uint8_t * buf);

ARGUMENTS

struct mtd_info * mtd

MTD device structure

loff_t from

offset to read from

size_t len

number of bytes to read

size_t * retlen

pointer to variable to store the number of read bytes

uint8_t * buf

the databuffer to put data

DESCRIPTION

Get hold of the chip and call nand_do_read.

AUTHOR

Thomas Gleixner <tglx@linutronix.de>

Author.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.12