summaryrefslogtreecommitdiffstats
path: root/sys/geom/gate/g_gate.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-07-08 21:08:53 +0000
committerpjd <pjd@FreeBSD.org>2005-07-08 21:08:53 +0000
commit9ef3d97ebe1d220afd368af05a870dd6fb7896b4 (patch)
tree4e6e9f2306700f1cc241094a7fb915860de44dbe /sys/geom/gate/g_gate.h
parent1519a773f9d524d631e7ce8794ca5b710b7fe58f (diff)
downloadFreeBSD-src-9ef3d97ebe1d220afd368af05a870dd6fb7896b4.zip
FreeBSD-src-9ef3d97ebe1d220afd368af05a870dd6fb7896b4.tar.gz
Add CANCEL command which allows to remove one request from the queue or
all requests from the queue if request number is not given. Bump version number. Approved by: re (scottl)
Diffstat (limited to 'sys/geom/gate/g_gate.h')
-rw-r--r--sys/geom/gate/g_gate.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/geom/gate/g_gate.h b/sys/geom/gate/g_gate.h
index 63e5a3f..5e655d5 100644
--- a/sys/geom/gate/g_gate.h
+++ b/sys/geom/gate/g_gate.h
@@ -41,7 +41,7 @@
#define G_GATE_MOD_NAME "ggate"
#define G_GATE_CTL_NAME "ggctl"
-#define G_GATE_VERSION 0
+#define G_GATE_VERSION 1
/*
* Maximum number of request that can be stored in
@@ -56,8 +56,9 @@
#define G_GATE_CMD_CREATE _IOWR('m', 0, struct g_gate_ctl_create)
#define G_GATE_CMD_DESTROY _IOWR('m', 1, struct g_gate_ctl_destroy)
-#define G_GATE_CMD_START _IOWR('m', 2, struct g_gate_ctl_io)
-#define G_GATE_CMD_DONE _IOWR('m', 3, struct g_gate_ctl_io)
+#define G_GATE_CMD_CANCEL _IOWR('m', 2, struct g_gate_ctl_cancel)
+#define G_GATE_CMD_START _IOWR('m', 3, struct g_gate_ctl_io)
+#define G_GATE_CMD_DONE _IOWR('m', 4, struct g_gate_ctl_io)
#define G_GATE_INFOSIZE 2048
@@ -129,6 +130,12 @@ struct g_gate_ctl_destroy {
int gctl_force;
};
+struct g_gate_ctl_cancel {
+ u_int gctl_version;
+ int gctl_unit;
+ uintptr_t gctl_seq;
+};
+
struct g_gate_ctl_io {
u_int gctl_version;
int gctl_unit;
OpenPOWER on IntegriCloud