---
name: "nvme_mi_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_mi_init_ctrl"
---

# nvme\_mi\_init\_ctrl(2)

initialise a NVMe controller.

## NAME

nvme\_mi\_init\_ctrl - initialise a NVMe controller.

## SYNOPSIS

**nvme\_mi\_ctrl\_t nvme\_mi\_init\_ctrl** **(nvme\_mi\_ep\_t ep** *,* **\_\_u16 ctrl\_id** *);*

## ARGUMENTS

- ep

  Endpoint to create under

- ctrl\_id

  ID of controller to initialize.

## DESCRIPTION

Create a connection to a controller behind the endpoint specified in *ep*. Controller IDs may be queried from the endpoint through *nvme\_mi\_mi\_read\_mi\_data\_ctrl\_list*.

See *nvme\_mi\_close\_ctrl*

## RETURN

New controller object, or NULL on failure.
