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

# nand\_write(9)

\[MTD Interface\] NAND write with ECC

## NAME

nand\_write - \[MTD Interface\] NAND write with ECC

## SYNOPSIS

**int 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.

## AUTHOR

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

Author.

## COPYRIGHT
