nvme_ns_mgmt_create(2) | libnvme API manual | nvme_ns_mgmt_create(2) |
nvme_ns_mgmt_create - Create a non attached namespace
int nvme_ns_mgmt_create (int fd , struct nvme_id_ns *ns , __u32 *nsid , __u32 timeout , __u8 csi );
On successful creation, the namespace exists in the subsystem, but is not attached to any controller. Use the nvme_ns_attach_ctrls to assign the namespace to one or more controllers.
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
nvme_ns_mgmt_create | January 2023 |