1libnvme(9)                        API Manual                        libnvme(9)
2
3
4

NAME

6       struct nvme_passthru_cmd64 - 64-bit nvme passthrough command structure
7

SYNOPSIS

9       struct nvme_passthru_cmd64 {
10           __u8 opcode;
11           __u8 flags;
12           __u16 rsvd1;
13           __u32 nsid;
14           __u32 cdw2;
15           __u32 cdw3;
16           __u64 metadata;
17           __u64 addr;
18           __u32 metadata_len;
19           __u32 data_len;
20           __u32 cdw10;
21           __u32 cdw11;
22           __u32 cdw12;
23           __u32 cdw13;
24           __u32 cdw14;
25           __u32 cdw15;
26           __u32 timeout_ms;
27           __u32 rsvd2;
28           __u64 result;
29        };
30
31

Members

33       opcode      Operation  code, see enum nvme_io_opcodes and enum nvme_ad‐
34                   min_opcodes
35
36       flags       Not supported: intended for command flags (eg: SGL, FUSE)
37
38       rsvd1       Reserved for future use
39
40       nsid        Namespace Identifier, or Fabrics type
41
42       cdw2        Command Dword 2 (no spec defined use)
43
44       cdw3        Command Dword 3 (no spec defined use)
45
46       metadata    User space address to metadata buffer (NULL if not used)
47
48       addr        User space address to data buffer (NULL if not used)
49
50       metadata_len
51                   Metadata buffer transfer length
52
53       data_len    Data buffer transfer length
54
55       cdw10       Command Dword 10 (command specific)
56
57       cdw11       Command Dword 11 (command specific)
58
59       cdw12       Command Dword 12 (command specific)
60
61       cdw13       Command Dword 13 (command specific)
62
63       cdw14       Command Dword 14 (command specific)
64
65       cdw15       Command Dword 15 (command specific)
66
67       timeout_ms  If non-zero, overrides system default timeout in  millisec‐
68                   onds
69
70       rsvd2       Reserved for future use (and fills an implicit struct pad
71
72       result      Set on completion to the command's CQE DWORD 0-1 controller
73                   response
74
75
76
77April 2023                struct nvme_passthru_cmd64                libnvme(9)
Impressum