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

nvmf_register_ctrl - Perform registration task with a DC

int nvmf_register_ctrl (nvme_ctrl_t c , enum nvmf_dim_tas tas , __u32 *result );

Controller instance
Task field of the Command Dword 10 (cdw10). Indicates whether to perform a Registration, Deregistration, or Registration-update.
The command-specific result returned by the DC upon command completion.

Perform registration task with a Discovery Controller (DC). Three tasks are supported: register, deregister, and registration update.

0 on success; on failure -1 is returned and errno is set

nvmf_register_ctrl April 2024