---
name: "libnvme_ns_get_command_retry_count-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_ns_get_command_retry_count-libnvme3"
---

# libnvme\_ns\_get\_command\_retry\_count-libnvme3(2)

Get command\_retry\_count.

## NAME

libnvme\_ns\_get\_command\_retry\_count - Get command\_retry\_count.

## SYNOPSIS

**int libnvme\_ns\_get\_command\_retry\_count** **(const struct libnvme\_ns \*p** *,* **long \*command\_retry\_count** *,* **long dflt** *);*

## ARGUMENTS

- p

  The *struct libnvme\_ns* instance to query.

- command\_retry\_count

  Where to store the value on success.

- dflt

  Value to store in *command\_retry\_count* on failure.

## RETURN

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