1. NAME

nand_lock - [REPLACEABLE] locks all blocks present in the device

2. SYNOPSIS

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

3. ARGUMENTS

mtd
    mtd info

ofs
    offset to start unlock from

len
    length to unlock

4. DESCRIPTION

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

Returns lock status.

5. AUTHOR

Thomas Gleixner <>
    Author.

6. COPYRIGHT