Reference

nvme_init_ns_attach-libnvme3(2)

Initialize passthru command for Namespace Attach/Detach

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

cmd

Passthru command to use

nsid

Namespace ID to execute attach selection

sel

Attachment selection, see enum nvme_ns_attach_sel

ctrlist

Controller list buffer to modify attachment state of nsid

DESCRIPTION

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