---
name: "libnvme_path_get_queue_depth-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_path_get_queue_depth-libnvme3"
---

# libnvme\_path\_get\_queue\_depth-libnvme3(2)

Get queue\_depth.

## NAME

libnvme\_path\_get\_queue\_depth - Get queue\_depth.

## SYNOPSIS

**int libnvme\_path\_get\_queue\_depth** **(const struct libnvme\_path \*p** *,* **int \*queue\_depth** *,* **int dflt** *);*

## ARGUMENTS

- p

  The *struct libnvme\_path* instance to query.

- queue\_depth

  Where to store the value on success.

- dflt

  Value to store in *queue\_depth* on failure.

## RETURN

0 on success, -ENOENT if the attribute does not exist, or a negative errno on failure.
