diff options
author | pjd <pjd@FreeBSD.org> | 2005-07-08 21:08:53 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-07-08 21:08:53 +0000 |
commit | 9ef3d97ebe1d220afd368af05a870dd6fb7896b4 (patch) | |
tree | 4e6e9f2306700f1cc241094a7fb915860de44dbe /sys/geom/gate/g_gate.h | |
parent | 1519a773f9d524d631e7ce8794ca5b710b7fe58f (diff) | |
download | FreeBSD-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.h | 13 |
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; |