1NAND_LOCK(9) Public Functions Provided NAND_LOCK(9)
2
3
4
6 nand_lock - [REPLACABLE] locks all blockes present in the device
7
9 int nand_lock(struct mtd_info * mtd, loff_t ofs, uint64_t len);
10
12 mtd
13 -- undescribed --
14
15 ofs
16 -- undescribed --
17
18 len
19 -- undescribed --
20
22 param mtd - mtd info param ofs - offset to start unlock from param len
23 - length to unlock
24
25 return - lock status
26
27 This feature is not support in many NAND parts. 'Micron' NAND parts do
28 have this feature, but it allows only to lock all blocks not for
29 specified range for block.
30
31 Implementing 'lock' feature by making use of 'unlock', for now.
32
34 Thomas Gleixner <tglx@linutronix.de>
35 Author.
36
38Kernel Hackers Manual 2.6. November 2011 NAND_LOCK(9)