Linux Kernel
3.7.1
|
#include <mtd.h>
Data Fields | |
unsigned int | mode |
size_t | len |
size_t | retlen |
size_t | ooblen |
size_t | oobretlen |
uint32_t | ooboffs |
uint8_t * | datbuf |
uint8_t * | oobbuf |
struct mtd_oob_ops - oob operation operands : operation mode
: number of data bytes to write/read
: number of data bytes written/read
: number of oob bytes to write/read : number of oob bytes written/read : offset of oob data in the oob area (only relevant when mode = MTD_OPS_PLACE_OOB or MTD_OPS_RAW) : data buffer - if NULL only oob data are read/written : oob data buffer
Note, it is allowed to read more than one OOB area at one go, but not write. The interface assumes that the OOB write requests program only one page's OOB area.