---
name: "libnvme_transport_handle_set_timeout-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_transport_handle_set_timeout-libnvme3"
---

# libnvme\_transport\_handle\_set\_timeout-libnvme3(2)

Set the default command timeout

## NAME

libnvme\_transport\_handle\_set\_timeout - Set the default command timeout

## SYNOPSIS

**void libnvme\_transport\_handle\_set\_timeout** **(struct libnvme\_transport\_handle \*hdl** *,* **\_\_u32 timeout\_ms** *);*

## ARGUMENTS

- hdl

  Transport handle to configure

- timeout\_ms

  Timeout in milliseconds. A value of 0 means use the kernel default (NVME\_DEFAULT\_IOCTL\_TIMEOUT).

## DESCRIPTION

Sets a default timeout that is applied to every passthrough command submitted through *hdl* when the command's own timeout\_ms field is 0. Commands that set a non-zero timeout\_ms override this default.
