mtd: add an ioctl to query the lock status of a flash sector
This patchs adds a way for user space programs to find out whether a flash sector is locked. An optional driver method in the mtd_info struct provides the information. Signed-off-by:Richard Cochran <richard.cochran@omicron.at> Signed-off-by:
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
Showing
- drivers/mtd/chips/cfi_cmdset_0001.c 10 additions, 0 deletionsdrivers/mtd/chips/cfi_cmdset_0001.c
- drivers/mtd/mtdchar.c 14 additions, 0 deletionsdrivers/mtd/mtdchar.c
- drivers/mtd/mtdpart.c 10 additions, 0 deletionsdrivers/mtd/mtdpart.c
- include/linux/mtd/mtd.h 1 addition, 0 deletionsinclude/linux/mtd/mtd.h
- include/mtd/mtd-abi.h 1 addition, 0 deletionsinclude/mtd/mtd-abi.h
Loading
Please register or sign in to comment