diff options
author | Johann Latocha | 2012-02-03 20:15:25 +0100 |
---|---|---|
committer | Johann Latocha | 2012-02-03 20:15:25 +0100 |
commit | 6b40869a06d6fb3331630409e0949b75caeb9923 (patch) | |
tree | 7ab1c6012d189aa074945098c6c5cd3ad280b708 /src/types.h | |
parent | [CLIENT] Connecting via config file (diff) | |
download | dnbd3-6b40869a06d6fb3331630409e0949b75caeb9923.tar.gz dnbd3-6b40869a06d6fb3331630409e0949b75caeb9923.tar.xz dnbd3-6b40869a06d6fb3331630409e0949b75caeb9923.zip |
[KERNEL] Device can now be closed
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/types.h b/src/types.h index 7f5c392..bb2d082 100644 --- a/src/types.h +++ b/src/types.h @@ -24,13 +24,18 @@ #include "config.h" // ioctl -#define DNBD3_MAGIC 'd' -#define IOCTL_SET_HOST _IO(0xab, 1) -#define IOCTL_SET_PORT _IO(0xab, 2) -#define IOCTL_SET_VID _IO(0xab, 3) -#define IOCTL_SET_RID _IO(0xab, 4) -#define IOCTL_CONNECT _IO(0xab, 5) -#define IOCTL_DISCONNECT _IO(0xab, 6) +#define DNBD3_MAGIC 'd' +#define IOCTL_OPEN _IO(0xab, 1) +#define IOCTL_CLOSE _IO(0xab, 2) +#define IOCTL_SWITCH _IO(0xab, 3) + +typedef struct +{ + char *host; + char *port; + int vid; + int rid; +} dnbd3_ioctl_t; // network #define CMD_GET_BLOCK 1 |