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

# nvme\_init\_ctrl(2)

Initialize nvme\_ctrl\_t object for an existing controller.

## NAME

nvme\_init\_ctrl - Initialize nvme\_ctrl\_t object for an existing controller.

## SYNOPSIS

**int nvme\_init\_ctrl** **(nvme\_host\_t h** *,* **nvme\_ctrl\_t c** *,* **int instance** *);*

## ARGUMENTS

- h

  nvme\_host\_t object

- c

  nvme\_ctrl\_t object

- instance

  Instance number (e.g. 1 for nvme1)

## RETURN

The **ioctl** return code. Typically 0 on success.
