aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libubi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libubi.c b/lib/libubi.c
index 6b57e50..86736dd 100644
--- a/lib/libubi.c
+++ b/lib/libubi.c
@@ -1364,3 +1364,13 @@ int ubi_is_mapped(int fd, int lnum)
{
return ioctl(fd, UBI_IOCEBISMAP, &lnum);
}
+
+int ubi_leb_map(int fd, int lnum)
+{
+ struct ubi_map_req r;
+
+ memset(&r, 0, sizeof(struct ubi_map_req));
+ r.lnum = lnum;
+
+ return ioctl(fd, UBI_IOCEBMAP, &r);
+}