---
name: "panic_nand_write"
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/panic_nand_write"
---

# panic\_nand\_write(9)

\[MTD Interface\] NAND write with ECC

## NAME

panic\_nand\_write - \[MTD Interface\] NAND write with ECC

## SYNOPSIS

**int panic\_nand\_write(struct mtd\_info \*** *mtd***, loff\_t** *to***, size\_t** *len***, size\_t \*** *retlen***, const uint8\_t \*** *buf***);**

## ARGUMENTS

*mtd*

MTD device structure

*to*

offset to write to

*len*

number of bytes to write

*retlen*

pointer to variable to store the number of written bytes

*buf*

the data to write

## DESCRIPTION

NAND write with ECC. Used when performing writes in interrupt context, this may for example be called by mtdoops when writing an oops while in panic.

## AUTHOR

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

Author.

## COPYRIGHT
