libnvme_ctrl_get_transport_handle(9) libnvme API manual libnvme_ctrl_get_transport_handle(9)

libnvme_ctrl_get_transport_handle - Get associated transport handle

struct libnvme_transport_handle * libnvme_ctrl_get_transport_handle (struct libnvme_ctrl *c );

Controller instance

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.

Link handle associated with c or NULL

libnvme_ctrl_get_transport_handle September 2026