---
name: "__nand_calculate_ecc"
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_calculate_ecc"
---

# \_\_nand\_calculate\_ecc(9)

\[NAND Interface\] Calculate 3-byte ECC for 256/512-byte block

## NAME

\_\_nand\_calculate\_ecc - \[NAND Interface\] Calculate 3-byte ECC for 256/512-byte block

## SYNOPSIS

**void \_\_nand\_calculate\_ecc(const unsigned char \*** *buf***, unsigned int** *eccsize***, unsigned char \*** *code***);**

## ARGUMENTS

*buf*

input buffer with raw data

*eccsize*

data bytes per ECC step (256 or 512)

*code*

output buffer with ECC

## AUTHOR

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

Author.

## COPYRIGHT
