nand_lock(9)

nand_lock9

[replaceable] locks all blocks present in the device

Usage

int nand_lock(struct mtd_info * mtd, loff_t ofs, uint64_t len);

Arguments

mtd

mtd info

ofs

offset to start unlock from

len

length to unlock

Overview

This feature is not supported in many NAND parts. 'Micron' NAND parts do have this feature, but it allows only to lock all blocks, not for specified range for block. Implementing 'lock' feature by making use of 'unlock', for now.

Returns lock status.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

Author

Thomas Gleixner <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.