blob: 45a4a477cdc35da7c845b33ccc215d157f531d0d [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <linux/compiler.h>
16#include <linux/ioctl.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080017
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080018#define BLKPG _IO(0x12,105)
Ben Cheng4b29af02012-03-07 16:14:53 -080019
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080020struct blkpg_ioctl_arg {
21 int op;
22 int flags;
23 int datalen;
24 void __user *data;
25};
Ben Cheng4b29af02012-03-07 16:14:53 -080026
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027#define BLKPG_ADD_PARTITION 1
28#define BLKPG_DEL_PARTITION 2
Ben Cheng4b29af02012-03-07 16:14:53 -080029
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030#define BLKPG_DEVNAMELTH 64
31#define BLKPG_VOLNAMELTH 64
Ben Cheng4b29af02012-03-07 16:14:53 -080032
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080033struct blkpg_partition {
34 long long start;
35 long long length;
36 int pno;
37 char devname[BLKPG_DEVNAMELTH];
38 char volname[BLKPG_VOLNAMELTH];
39};
Ben Cheng4b29af02012-03-07 16:14:53 -080040
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041#endif