aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/dev_block.txt16
-rw-r--r--sys/linux/dev_block.txt.const5
2 files changed, 18 insertions, 3 deletions
diff --git a/sys/linux/dev_block.txt b/sys/linux/dev_block.txt
index 4ce5e5707..34e283164 100644
--- a/sys/linux/dev_block.txt
+++ b/sys/linux/dev_block.txt
@@ -85,12 +85,22 @@ hd_geometry {
}
blkpg_ioctl_arg {
- op int32
- flags int32
+ op flags[blkpg_ioctl_op, int32]
+ flags const[0, int32]
datalen bytesize[data, int32]
- data ptr[in, array[int8]]
+ data ptr[in, blkpg_partition]
}
+blkpg_partition {
+ start int64
+ length int64
+ pno int32[0:20]
+ devname array[const[0, int8], BLKPG_DEVNAMELTH]
+ volname array[const[0, int8], BLKPG_VOLNAMELTH]
+}
+
+blkpg_ioctl_op = BLKPG_ADD_PARTITION, BLKPG_DEL_PARTITION, BLKPG_RESIZE_PARTITION
+
blk_user_trace_setup {
name array[const[0, int8], BLKTRACE_BDEV_SIZE]
act_mask int16
diff --git a/sys/linux/dev_block.txt.const b/sys/linux/dev_block.txt.const
index 379ac8037..fd9879645 100644
--- a/sys/linux/dev_block.txt.const
+++ b/sys/linux/dev_block.txt.const
@@ -13,6 +13,11 @@ BLKIOMIN = 4728, mips64le:ppc64le:536875640
BLKIOOPT = 4729, mips64le:ppc64le:536875641
BLKPBSZGET = 4731, mips64le:ppc64le:536875643
BLKPG = 4713, mips64le:ppc64le:536875625
+BLKPG_ADD_PARTITION = 1
+BLKPG_DEL_PARTITION = 2
+BLKPG_DEVNAMELTH = 64
+BLKPG_RESIZE_PARTITION = 3
+BLKPG_VOLNAMELTH = 64
BLKRAGET = 4707, mips64le:ppc64le:536875619
BLKREPORTZONE = 3222278786
BLKRESETZONE = 1074795139, mips64le:ppc64le:2148536963