Debian Codegraph @

doc/man/nvme_ns_mgmt_create.2

raw
1 .TH "nvme_ns_mgmt_create" 9 "nvme_ns_mgmt_create" "November 2025" "libnvme API manual" LINUX
2 .SH NAME
3 nvme_ns_mgmt_create \- Create a non attached namespace
4 .SH SYNOPSIS
5 .B "int" nvme_ns_mgmt_create
6 .BI "(int fd " ","
7 .BI "struct nvme_id_ns *ns " ","
8 .BI "__u32 *nsid " ","
9 .BI "__u32 timeout " ","
10 .BI "__u8 csi " ","
11 .BI "struct nvme_ns_mgmt_host_sw_specified *data " ");"
12 .SH ARGUMENTS
13 .IP "fd" 12
14 File descriptor of nvme device
15 .IP "ns" 12
16 Namespace identification that defines ns creation parameters
17 .IP "nsid" 12
18 On success, set to the namespace id that was created
19 .IP "timeout" 12
20 Override the default timeout to this value in milliseconds;
21 set to 0 to use the system default.
22 .IP "csi" 12
23 Command Set Identifier
24 .IP "data" 12
25 Host Software Specified Fields that defines ns creation parameters
26 .SH "DESCRIPTION"
27 On successful creation, the namespace exists in the subsystem, but is not
28 attached to any controller. Use the \fBnvme_ns_attach_ctrls\fP to assign the
29 namespace to one or more controllers.
30 .SH "RETURN"
31 The nvme command status if a response was received (see
32 \fIenum nvme_status_field\fP) or -1 with errno set otherwise.