---
name: "nvme_status_equals"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_status_equals"
---

# nvme\_status\_equals(2)

helper to check a status against a type and value

## NAME

nvme\_status\_equals - helper to check a status against a type and value

## SYNOPSIS

**\_\_u32 nvme\_status\_equals** **(int status** *,* **enum nvme\_status\_type type** *,* **unsigned int value** *);*

## ARGUMENTS

- status

  the (non-negative) return value from the NVMe API

- type

  the status type

- value

  the status value

## RETURN

true if *status* is of the specified type and value
