libnvme\_ctrl\_get\_transport\_handle(9) libnvme API manual libnvme\_ctrl\_get\_transport\_handle(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[c](#c)

Controller instance

# [DESCRIPTION](#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](#RETURN)

Link handle associated with *c* or NULL

libnvme\_ctrl\_get\_transport\_handle September 2026

---

Document: libnvme_ctrl_get_transport_handle-libnvme3(2) from nvme-cli 3.1-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
