blob: 3978e945ea6d7b23e616c336e8e3b22878c41c59 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris05d08e92016-02-04 13:16:38 -08007#ifndef _UAPI__LINUX_BLKPG_H
8#define _UAPI__LINUX_BLKPG_H
Ben Cheng655a7c02013-10-16 16:09:24 -07009#include <linux/compiler.h>
10#include <linux/ioctl.h>
Tao Baod7db5942015-01-28 10:07:51 -080011#define BLKPG _IO(0x12, 105)
Ben Cheng655a7c02013-10-16 16:09:24 -070012struct blkpg_ioctl_arg {
Tao Baod7db5942015-01-28 10:07:51 -080013 int op;
14 int flags;
Tao Baod7db5942015-01-28 10:07:51 -080015 int datalen;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070016 void * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070017};
18#define BLKPG_ADD_PARTITION 1
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define BLKPG_DEL_PARTITION 2
20#define BLKPG_RESIZE_PARTITION 3
21#define BLKPG_DEVNAMELTH 64
22#define BLKPG_VOLNAMELTH 64
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct blkpg_partition {
Tao Baod7db5942015-01-28 10:07:51 -080024 long long start;
25 long long length;
26 int pno;
Tao Baod7db5942015-01-28 10:07:51 -080027 char devname[BLKPG_DEVNAMELTH];
28 char volname[BLKPG_VOLNAMELTH];
Ben Cheng655a7c02013-10-16 16:09:24 -070029};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080030#endif