aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/mtd
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2014-03-05 09:16:14 -0500
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-03-06 05:04:22 -0500
commit463c5eedb4a13b9aa91f05498a0f2c20bd03f8c4 (patch)
treeaba73d0de039f0bb5e770e87c3aad5717e787edc /include/uapi/mtd
parent8af871887fcba470ff9265c65cff7d14d9e0e3f9 (diff)
UBI: make UBI_IOCVOLCRBLK take a parameter for future usage
In order to allow a future ioctl parameter, such as a creation flag, we change the UBI_IOCVOLCRBLK so it accepts a struct ubi_blkcreate_req. For the time being the structure is not in use, but fully reserved. This ABI change is still possible and harmless, because the ioctl has just been introduced and there's no userspace program which uses it. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'include/uapi/mtd')
-rw-r--r--include/uapi/mtd/ubi-user.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/uapi/mtd/ubi-user.h b/include/uapi/mtd/ubi-user.h
index 9c885e26cc0f..1927b0d78a99 100644
--- a/include/uapi/mtd/ubi-user.h
+++ b/include/uapi/mtd/ubi-user.h
@@ -138,9 +138,12 @@
138 * Block devices on UBI volumes 138 * Block devices on UBI volumes
139 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 * 140 *
141 * To create or remove a R/O block device on top of an UBI volume the 141 * To create a R/O block device on top of an UBI volume the %UBI_IOCVOLCRBLK
142 * %UBI_IOCVOLCRBLK and %UBI_IOCVOLRMBLK ioctl commands should be used, 142 * should be used. A pointer to a &struct ubi_blkcreate_req object is expected
143 * respectively. These commands take no arguments. 143 * to be passed, which is not used and reserved for future usage.
144 *
145 * Conversely, to remove a block device the %UBI_IOCVOLRMBLK should be used,
146 * which takes no arguments.
144 */ 147 */
145 148
146/* 149/*
@@ -199,7 +202,7 @@
199#define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, \ 202#define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, \
200 struct ubi_set_vol_prop_req) 203 struct ubi_set_vol_prop_req)
201/* Create a R/O block device on top of an UBI volume */ 204/* Create a R/O block device on top of an UBI volume */
202#define UBI_IOCVOLCRBLK _IO(UBI_VOL_IOC_MAGIC, 7) 205#define UBI_IOCVOLCRBLK _IOW(UBI_VOL_IOC_MAGIC, 7, struct ubi_blkcreate_req)
203/* Remove the R/O block device */ 206/* Remove the R/O block device */
204#define UBI_IOCVOLRMBLK _IO(UBI_VOL_IOC_MAGIC, 8) 207#define UBI_IOCVOLRMBLK _IO(UBI_VOL_IOC_MAGIC, 8)
205 208
@@ -431,4 +434,12 @@ struct ubi_set_vol_prop_req {
431 __u64 value; 434 __u64 value;
432} __packed; 435} __packed;
433 436
437/**
438 * struct ubi_blkcreate_req - a data structure used in block creation requests.
439 * @padding: reserved for future, not used, has to be zeroed
440 */
441struct ubi_blkcreate_req {
442 __s8 padding[128];
443} __packed;
444
434#endif /* __UBI_USER_H__ */ 445#endif /* __UBI_USER_H__ */