Skip to content

Commit 845aba5

Browse files
minwooimkeithbusch
authored andcommitted
uapi: Sync up nvme_ioctl.h with kernel
Kernel has already updated 0x47 and 0x48 ioctl commands for 64bits support. This patch synced up the header file between kernel and nvme-cli. Signed-off-by: Minwoo Im <[email protected]>
1 parent 25521a6 commit 845aba5

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

linux/nvme_ioctl.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,28 @@ struct nvme_passthru_cmd {
5454
__u32 result;
5555
};
5656

57+
struct nvme_passthru_cmd64 {
58+
__u8 opcode;
59+
__u8 flags;
60+
__u16 rsvd1;
61+
__u32 nsid;
62+
__u32 cdw2;
63+
__u32 cdw3;
64+
__u64 metadata;
65+
__u64 addr;
66+
__u32 metadata_len;
67+
__u32 data_len;
68+
__u32 cdw10;
69+
__u32 cdw11;
70+
__u32 cdw12;
71+
__u32 cdw13;
72+
__u32 cdw14;
73+
__u32 cdw15;
74+
__u32 timeout_ms;
75+
__u32 rsvd2;
76+
__u64 result;
77+
};
78+
5779
#define nvme_admin_cmd nvme_passthru_cmd
5880

5981
#define NVME_IOCTL_ID _IO('N', 0x40)
@@ -63,5 +85,7 @@ struct nvme_passthru_cmd {
6385
#define NVME_IOCTL_RESET _IO('N', 0x44)
6486
#define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45)
6587
#define NVME_IOCTL_RESCAN _IO('N', 0x46)
88+
#define NVME_IOCTL_ADMIN64_CMD _IOWR('N', 0x47, struct nvme_passthru_cmd64)
89+
#define NVME_IOCTL_IO64_CMD _IOWR('N', 0x48, struct nvme_passthru_cmd64)
6690

6791
#endif /* _UAPI_LINUX_NVME_IOCTL_H */

0 commit comments

Comments
 (0)