nvme_mi_admin_ns_detach_ctrls - Man Page
Detach namespace from controllers
int nvme_mi_admin_ns_detach_ctrls (nvme_mi_ctrl_t ctrl , __u32 nsid , struct nvme_ctrl_list *ctrlist );
Controller to send command to
Namespace ID to detach
Controller list to modify attachment state of nsid
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
April 2023 libnvme API manual