diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libmtd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libmtd.h b/include/libmtd.h index a6ff050..f9f3164 100644 --- a/include/libmtd.h +++ b/include/libmtd.h @@ -174,6 +174,20 @@ int mtd_lock(const struct mtd_dev_info *mtd, int fd, int eb); int mtd_unlock(const struct mtd_dev_info *mtd, int fd, int eb); /** + * mtd_erase - erase multiple eraseblocks. + * @desc: MTD library descriptor + * @mtd: MTD device description object + * @fd: MTD device node file descriptor + * @eb: index of first eraseblock to erase + * @blocks: the number of eraseblocks to erase + * + * This function erases @blocks starting at eraseblock @eb of MTD device + * described by @fd. Returns %0 in case of success and %-1 in case of failure. + */ +int mtd_erase_multi(libmtd_t desc, const struct mtd_dev_info *mtd, + int fd, int eb, int blocks); + +/** * mtd_erase - erase an eraseblock. * @desc: MTD library descriptor * @mtd: MTD device description object |