[PATCH 1/4] mtd-utils: add support for erase regions

Marian Rotariu marian_rotariu at mentor.com
Tue Apr 26 02:30:21 PDT 2016


This field will reflect the mtd->numeraseregions available in the kernel
space.

Signed-off-by: Marian Rotariu <marian_rotariu at mentor.com>
---
 include/libmtd.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/libmtd.h b/include/libmtd.h
index a78c8cb..b111a77 100644
--- a/include/libmtd.h
+++ b/include/libmtd.h
@@ -67,6 +67,7 @@ struct mtd_info
  * @subpage_size: sub-page size
  * @oob_size: OOB size (zero if the device does not have OOB area)
  * @region_cnt: count of additional erase regions
+ * @reginfo: erase regions information
  * @writable: zero if the device is read-only
  * @bb_allowed: non-zero if the MTD device may have bad eraseblocks
  */
@@ -85,6 +86,7 @@ struct mtd_dev_info
 	int subpage_size;
 	int oob_size;
 	int region_cnt;
+	struct region_info_user *reginfo;
 	unsigned int writable:1;
 	unsigned int bb_allowed:1;
 };
-- 
1.9.1




More information about the linux-mtd mailing list