1nvme_ns_mgmt_create(9) libnvme API manual nvme_ns_mgmt_create(9)
2
3
4
6 nvme_ns_mgmt_create - Create a non attached namespace
7
9 int nvme_ns_mgmt_create (int fd , struct nvme_id_ns *ns , __u32 *nsid ,
10 __u32 timeout , __u8 csi , struct nvme_ns_mgmt_host_sw_specified *data
11 );
12
14 fd File descriptor of nvme device
15
16 ns Namespace identification that defines ns creation parame‐
17 ters
18
19 nsid On success, set to the namespace id that was created
20
21 timeout Override the default timeout to this value in milliseconds;
22 set to 0 to use the system default.
23
24 csi Command Set Identifier
25
26 data Host Software Specified Fields that defines ns creation pa‐
27 rameters
28
30 On successful creation, the namespace exists in the subsystem, but is
31 not attached to any controller. Use the nvme_ns_attach_ctrls to assign
32 the namespace to one or more controllers.
33
35 The nvme command status if a response was received (see enum nvme_sta‐
36 tus_field) or -1 with errno set otherwise.
37
38
39
40October 2023 nvme_ns_mgmt_create nvme_ns_mgmt_create(9)