Scroll to navigation

nvme_init_ns_attach(2) libnvme API manual nvme_init_ns_attach(2)

NAME

nvme_init_ns_attach - Initialize passthru command for Namespace Attach/Detach

SYNOPSIS

void nvme_init_ns_attach (struct libnvme_passthru_cmd *cmd , __u32 nsid , enum nvme_ns_attach_sel sel , struct nvme_ctrl_list *ctrlist );

ARGUMENTS

Passthru command to use
Namespace ID to execute attach selection
Attachment selection, see enum nvme_ns_attach_sel
Controller list buffer to modify attachment state of nsid

DESCRIPTION

Initializes the passthru command buffer for the Namespace Attach/Detach command.

nvme_init_ns_attach October 2026