diff options
author | Corentin Chary <corentincj@iksaif.net> | 2009-05-09 11:41:06 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-11 18:28:53 +0300 |
commit | 999757f7e892375b1a8dfe8b0ccb3a139d8c7f71 (patch) | |
tree | 8961c1e947cb538a206586d7449468420fb6ed0d /ubi-utils/src/libubi.c | |
parent | 29005d358c28e3adce51bee94472b4853267f84f (diff) |
libubi: add ubi_is_mapped() function
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/libubi.c')
-rw-r--r-- | ubi-utils/src/libubi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ubi-utils/src/libubi.c b/ubi-utils/src/libubi.c index 5b22e21..158b919 100644 --- a/ubi-utils/src/libubi.c +++ b/ubi-utils/src/libubi.c @@ -1254,3 +1254,8 @@ int ubi_leb_unmap(int fd, int lnum) { return ioctl(fd, UBI_IOCEBUNMAP, &lnum); } + +int ubi_is_mapped(int fd, int lnum) +{ + return ioctl(fd, UBI_IOCEBISMAP, &lnum); +} |