nvme_init_ns_detach_ctrls(9) libnvme API manual nvme_init_ns_detach_ctrls(9)

nvme_init_ns_detach_ctrls - Initialize passthru command to detach namespace from controllers

void nvme_init_ns_detach_ctrls (struct libnvme_passthru_cmd *cmd , __u32 nsid , struct nvme_ctrl_list *ctrlist );

Passthru command to use
Namespace ID to detach
Controller list buffer to modify attachment state of nsid

Initializes the passthru command buffer for the Namespace Detach command (NVME_NS_ATTACH_SEL_CTRL_DEATTACH).

nvme_init_ns_detach_ctrls October 2026