Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_BLKPG_H
     13 #define _LINUX_BLKPG_H
     14 
     15 #include <linux/compiler.h>
     16 #include <linux/ioctl.h>
     17 
     18 #define BLKPG _IO(0x12,105)
     19 
     20 struct blkpg_ioctl_arg {
     21  int op;
     22  int flags;
     23  int datalen;
     24  void __user *data;
     25 };
     26 
     27 #define BLKPG_ADD_PARTITION 1
     28 #define BLKPG_DEL_PARTITION 2
     29 
     30 #define BLKPG_DEVNAMELTH 64
     31 #define BLKPG_VOLNAMELTH 64
     32 
     33 struct blkpg_partition {
     34  long long start;
     35  long long length;
     36  int pno;
     37  char devname[BLKPG_DEVNAMELTH];
     38  char volname[BLKPG_VOLNAMELTH];
     39 };
     40 
     41 #endif
     42