diff options
author | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2019-11-04 08:52:50 -0500 |
---|---|---|
committer | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2019-11-04 09:30:01 -0500 |
commit | c12717b6eed6f6bfd1c6feb63a8e70f36d5555b5 (patch) | |
tree | 15bf78d6ef4e63a483bdbd4d8e63c12570da85ff /kmod | |
parent | fa22ae22ac765b717d6bec39975ca4d90cd56f94 (diff) | |
download | libvfio-user-c12717b6eed6f6bfd1c6feb63a8e70f36d5555b5.zip libvfio-user-c12717b6eed6f6bfd1c6feb63a8e70f36d5555b5.tar.gz libvfio-user-c12717b6eed6f6bfd1c6feb63a8e70f36d5555b5.tar.bz2 |
muser.h: fix the ioctl defination
_IOW means userland is writing and kernel is reading
_IOR means userland is reading and kernel is writing
MUSER_DEV_CMD_WAIT should be _IOR as userland waits to read
cmd from kernel.
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'kmod')
-rw-r--r-- | kmod/muser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod/muser.h b/kmod/muser.h index 34a68bc..58deb4c 100644 --- a/kmod/muser.h +++ b/kmod/muser.h @@ -65,7 +65,7 @@ struct muser_cmd { }; /* ioctl cmds valid for /dev/muser/<uuid> */ -#define MUSER_DEV_CMD_WAIT _IOW('M', 1, struct muser_cmd) +#define MUSER_DEV_CMD_WAIT _IOR('M', 1, struct muser_cmd) #define MUSER_DEV_CMD_DONE _IOW('M', 2, struct muser_cmd) #endif /* _UAPI_LINUX_MUSER_H */ |