---
name: "libnvmf_register_ctrl-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_register_ctrl-libnvme3"
---

# libnvmf\_register\_ctrl-libnvme3(2)

Perform registration task with a DC

## NAME

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

## SYNOPSIS

**int libnvmf\_register\_ctrl** **(struct libnvme\_ctrl \*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, negative error code otherwise.
