• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI__LINUX_BLKPG_H
7 #define _UAPI__LINUX_BLKPG_H
8 #include <linux/compiler.h>
9 #include <linux/ioctl.h>
10 #define BLKPG      _IO(0x12,105)
11 struct blkpg_ioctl_arg {
12         int op;
13         int flags;
14         int datalen;
15         void __user *data;
16 };
17 #define BLKPG_ADD_PARTITION	1
18 #define BLKPG_DEL_PARTITION	2
19 #define BLKPG_RESIZE_PARTITION	3
20 #define BLKPG_DEVNAMELTH	64
21 #define BLKPG_VOLNAMELTH	64
22 struct blkpg_partition {
23 	long long start;
24 	long long length;
25 	int pno;
26 	char devname[BLKPG_DEVNAMELTH];
27 	char volname[BLKPG_VOLNAMELTH];
28 };
29 #endif
30