0001
0002 #ifndef _UAPI__LINUX_BLKPG_H
0003 #define _UAPI__LINUX_BLKPG_H
0004
0005 #include <linux/compiler.h>
0006 #include <linux/ioctl.h>
0007
0008 #define BLKPG _IO(0x12,105)
0009
0010
0011 struct blkpg_ioctl_arg {
0012 int op;
0013 int flags;
0014 int datalen;
0015 void __user *data;
0016 };
0017
0018
0019 #define BLKPG_ADD_PARTITION 1
0020 #define BLKPG_DEL_PARTITION 2
0021 #define BLKPG_RESIZE_PARTITION 3
0022
0023
0024 #define BLKPG_DEVNAMELTH 64
0025 #define BLKPG_VOLNAMELTH 64
0026
0027
0028 struct blkpg_partition {
0029 long long start;
0030 long long length;
0031 int pno;
0032 char devname[BLKPG_DEVNAMELTH];
0033 char volname[BLKPG_VOLNAMELTH];
0034 };
0035
0036 #endif