summaryrefslogtreecommitdiff
path: root/include/uapi/linux/nvme_ioctl.h
diff options
context:
space:
mode:
authorKanchan Joshi <joshi.k@samsung.com>2022-05-20 14:36:30 +0530
committerJens Axboe <axboe@kernel.dk>2022-05-20 06:17:33 -0600
commit58e5bdeb9c2b06895e723c0b1e670f54510ff782 (patch)
tree5fdb0fd35c94c32ad476ba62a5b3f6692bc2368e /include/uapi/linux/nvme_ioctl.h
parent00fc2eeb15acc7f7e8713edc6d4d9855936226cb (diff)
nvme: enable uring-passthrough for admin commands
Add two new opcodes that userspace can use for admin commands: NVME_URING_CMD_ADMIN : non-vectroed NVME_URING_CMD_ADMIN_VEC : vectored variant Wire up support when these are issued on controller node(/dev/nvmeX). Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220520090630.70394-3-joshi.k@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/nvme_ioctl.h')
-rw-r--r--include/uapi/linux/nvme_ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/nvme_ioctl.h b/include/uapi/linux/nvme_ioctl.h
index 0b1876aa5a59..2f76cba67166 100644
--- a/include/uapi/linux/nvme_ioctl.h
+++ b/include/uapi/linux/nvme_ioctl.h
@@ -108,5 +108,7 @@ 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)
+#define NVME_URING_CMD_ADMIN _IOWR('N', 0x82, struct nvme_uring_cmd)
+#define NVME_URING_CMD_ADMIN_VEC _IOWR('N', 0x83, struct nvme_uring_cmd)
#endif /* _UAPI_LINUX_NVME_IOCTL_H */