---
name: "scan_read_oob"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scan_read_oob"
---

# scan\_read\_oob(9)

\[GENERIC\] Scan data+OOB region to buffer

## NAME

scan\_read\_oob - \[GENERIC\] Scan data+OOB region to buffer

## SYNOPSIS

**int scan\_read\_oob(struct mtd\_info \*** *mtd***, uint8\_t \*** *buf***, loff\_t** *offs***, size\_t** *len***);**

## ARGUMENTS

*mtd*

MTD device structure

*buf*

temporary buffer

*offs*

offset at which to scan

*len*

length of data region to read

## DESCRIPTION

Scan read data from data+OOB. May traverse multiple pages, interleaving page,OOB,page,OOB,... in buf. Completes transfer and returns the “strongest” ECC condition (error or bitflip). May quit on the first (non-ECC) error.

## AUTHOR

**Thomas Gleixner** \<tglx@linutronix.de\>

Author.

## COPYRIGHT
