aboutsummaryrefslogtreecommitdiff
path: root/kmod
diff options
context:
space:
mode:
authorSwapnil Ingle <swapnil.ingle@nutanix.com>2019-11-04 08:52:50 -0500
committerSwapnil Ingle <swapnil.ingle@nutanix.com>2019-11-04 09:30:01 -0500
commitc12717b6eed6f6bfd1c6feb63a8e70f36d5555b5 (patch)
tree15bf78d6ef4e63a483bdbd4d8e63c12570da85ff /kmod
parentfa22ae22ac765b717d6bec39975ca4d90cd56f94 (diff)
downloadlibvfio-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.h2
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 */