---
name: "libnvme_ctrl_get_command_error_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_ctrl_get_command_error_count-libnvme3"
---

# libnvme\_ctrl\_get\_command\_error\_count-libnvme3(2)

Get command\_error\_count.

## NAME

libnvme\_ctrl\_get\_command\_error\_count - Get command\_error\_count.

## SYNOPSIS

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

## ARGUMENTS

- p

  The *struct libnvme\_ctrl* instance to query.

- command\_error\_count

  Where to store the value on success.

- dflt

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

## RETURN

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