DOKK / manpages / debian 12 / libnvme-dev / nvme_mi_admin_ns_attach.2.en
nvme_mi_admin_ns_attach(2) libnvme API manual nvme_mi_admin_ns_attach(2)

nvme_mi_admin_ns_attach - Attach or detach namespace to controller(s)

int nvme_mi_admin_ns_attach (nvme_mi_ctrl_t ctrl , struct nvme_ns_attach_args *args );

Controller to send command to
Namespace Attach command arguments

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_mi_admin_ns_attach January 2023