---
name: "nvmf_register_ctrl"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvmf_register_ctrl"
---

# nvmf\_register\_ctrl(2)

Perform registration task with a DC

## NAME

nvmf\_register\_ctrl - Perform registration task with a DC

## SYNOPSIS

**int nvmf\_register\_ctrl** **(nvme\_ctrl\_t c** *,* **enum nvmf\_dim\_tas tas** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- c

  Controller instance

- tas

  Task field of the Command Dword 10 (cdw10). Indicates whether to perform a Registration, Deregistration, or Registration-update.

- result

  The command-specific result returned by the DC upon command completion.

## DESCRIPTION

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

## RETURN

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