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

# nvme\_get\_features\_simple(2)

Helper function for @nvme\_get\_features()

## NAME

nvme\_get\_features\_simple - Helper function for @nvme\_get\_features()

## SYNOPSIS

**int nvme\_get\_features\_simple** **(int fd** *,* **enum nvme\_features\_id fid** *,* **\_\_u32 nsid** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- fid

  Feature identifier

- nsid

  Namespace ID, if applicable

- result

  The command completion result from CQE dword0

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*) or -1 with errno set otherwise.
