nvme_init_ns_attach(9) libnvme API manual nvme_init_ns_attach(9)

nvme_init_ns_attach - Initialize passthru command for Namespace Attach/Detach

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

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

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

nvme_init_ns_attach October 2026