aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorAnuj Gupta <anuj20.g@samsung.com>2022-05-11 11:17:49 +0530
committerJens Axboe <axboe@kernel.dk>2022-05-11 07:41:19 -0600
commitf569add47119fa910ed7711b26b8d38e21f7ea77 (patch)
treed2ea8fdca525a534d834504b5ebfd58bb88c412f /include/uapi
parentnvme: wire-up uring-cmd support for io-passthru on char-device. (diff)
downloadlinux-dev-f569add47119fa910ed7711b26b8d38e21f7ea77.tar.xz
linux-dev-f569add47119fa910ed7711b26b8d38e21f7ea77.zip
nvme: add vectored-io support for uring-cmd
wire up support for async passthru that takes an array of buffers (using iovec). Exposed via a new op NVME_URING_CMD_IO_VEC. Same 'struct nvme_uring_cmd' is to be used with - 1. cmd.addr as base address of user iovec array 2. cmd.data_len as count of iovec array elements Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Signed-off-by: Anuj Gupta <anuj20.g@samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220511054750.20432-6-joshi.k@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvme_ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nvme_ioctl.h b/include/uapi/linux/nvme_ioctl.h
index 04e458c649ab..0b1876aa5a59 100644
--- a/include/uapi/linux/nvme_ioctl.h
+++ b/include/uapi/linux/nvme_ioctl.h
@@ -107,5 +107,6 @@ struct nvme_uring_cmd {
/* io_uring async commands: */
#define NVME_URING_CMD_IO _IOWR('N', 0x80, struct nvme_uring_cmd)
+#define NVME_URING_CMD_IO_VEC _IOWR('N', 0x81, struct nvme_uring_cmd)
#endif /* _UAPI_LINUX_NVME_IOCTL_H */