logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme_ns_mgmt_create - Create a non attached namespace

Arguments

fd File descriptor of nvme device ns Namespace identification that defines ns creation parameters nsid On success, set to the namespace id that was created timeout Override the default timeout to this value in milliseconds; set to 0 to use the system default. csi Command Set Identifier data Host Software Specified Fields that defines ns creation parameters

Description

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.

Name

nvme_ns_mgmt_create - Create a non attached namespace

Return

The nvme command status if a response was received (see enumnvme_status_field) or -1 with errno set otherwise. August 2025 nvme_ns_mgmt_create nvme_ns_mgmt_create(2)

Synopsis

intnvme_ns_mgmt_create(intfd,structnvme_id_ns*ns,__u32*nsid,__u32timeout,__u8csi,structnvme_ns_mgmt_host_sw_specified*data);

See Also