---
name: "nand_check_wp"
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_check_wp"
---

# nand\_check\_wp(9)

\[GENERIC\] check if the chip is write protected

## NAME

nand\_check\_wp - \[GENERIC\] check if the chip is write protected

## SYNOPSIS

**int nand\_check\_wp(struct mtd\_info \*** *mtd***);**

## ARGUMENTS

*mtd*

MTD device structure

## DESCRIPTION

Check, if the device is write protected. The function expects, that the device is already selected.

## AUTHOR

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

Author.

## COPYRIGHT
