nand_lock

Langue: en

Version: October 2010 (fedora - 01/12/10)

Section: 9 (Appels noyau Linux)

NAME

nand_lock - [REPLACABLE] locks all blockes present in the device

SYNOPSIS

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

ARGUMENTS

mtd

-- undescribed --

ofs

-- undescribed --

len

-- undescribed --

DESCRIPTION

param

mtd - mtd info param ofs - offset to start unlock from param len - length to unlock

return - lock status

This feature is not support 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.

AUTHOR

Thomas Gleixner <tglx@linutronix.de>

Author.