1libnvme(9) API Manual libnvme(9)
2
3
4
6 struct nvme_format_nvm_args - Arguments for the Format Nvme Namespace
7 command
8
10 struct nvme_format_nvm_args {
11 __u32 *result;
12 int args_size;
13 int fd;
14 __u32 timeout;
15 __u32 nsid;
16 enum nvme_cmd_format_mset mset;
17 enum nvme_cmd_format_pi pi;
18 enum nvme_cmd_format_pil pil;
19 enum nvme_cmd_format_ses ses;
20 __u8 lbaf;
21 };
22
23
25 result The command completion result from CQE dword0
26
27 args_size Size of struct nvme_format_nvm_args
28
29 fd File descriptor of nvme device
30
31 timeout Set to override default timeout to this value in millisecā
32 onds; useful for long running formats. 0 will use system
33 default.
34
35 nsid Namespace ID to format
36
37 mset Metadata settings (extended or separated), true if extended
38
39 pi Protection information type
40
41 pil Protection information location (beginning or end), true if
42 end
43
44 ses Secure erase settings
45
46 lbaf Logical block address format
47
48
49
50April 2022 struct nvme_format_nvm_args libnvme(9)