---
name: "libnvme_ctrl_get_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_ctrl_get_transport_handle-libnvme3"
---

# libnvme\_ctrl\_get\_transport\_handle-libnvme3(2)

Get associated transport handle

## NAME

libnvme\_ctrl\_get\_transport\_handle - Get associated transport handle

## SYNOPSIS

**struct libnvme\_transport\_handle \* libnvme\_ctrl\_get\_transport\_handle** **(struct libnvme\_ctrl \*c** *);*

## ARGUMENTS

- c

  Controller instance

## DESCRIPTION

libnvme will **open** the device (if not already opened) and keep an internal copy of the link handle. Following calls to this API retrieve the internal cached copy of the link handle. The file will remain opened and the handle will remain cached until the controller object is deleted or **libnvme\_ctrl\_release\_transport\_handle** is called.

## RETURN

Link handle associated with *c* or NULL
