---
name: "libnvme_mi_init_transport_handle-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_mi_init_transport_handle-libnvme3"
---

# libnvme\_mi\_init\_transport\_handle-libnvme3(2)

initialise a transport handle to NVMe controller.

## NAME

libnvme\_mi\_init\_transport\_handle - initialise a transport handle to NVMe controller.

## SYNOPSIS

**struct libnvme\_transport\_handle \* libnvme\_mi\_init\_transport\_handle** **(struct libnvme\_mi\_ep \*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 *libnvme\_mi\_mi\_read\_mi\_data\_ctrl\_list*.

See *libnvme\_mi\_close\_transport\_handle*

## RETURN

New transport handle object, or NULL on failure.
