---
name: "libnvme_init_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/libnvme_init_ctrl-libnvme3"
---

# libnvme\_init\_ctrl-libnvme3(2)

Initialize struct libnvme\_ctrl object for an existing controller.

## NAME

libnvme\_init\_ctrl - Initialize struct libnvme\_ctrl object for an existing controller.

## SYNOPSIS

**int libnvme\_init\_ctrl** **(struct libnvme\_host \*h** *,* **struct libnvme\_ctrl \*c** *,* **int instance** *);*

## ARGUMENTS

- h

  struct libnvme\_host object

- c

  struct libnvme\_ctrl object

- instance

  Instance number (e.g. 1 for nvme1)

## RETURN

0 on success, negative error code otherwise.
