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