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