---
name: "nvme_set_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_set_features_simple"
---

# nvme\_set\_features\_simple(2)

Helper function for @nvme\_set\_features()

## NAME

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

## SYNOPSIS

**int nvme\_set\_features\_simple** **(int fd** *,* **\_\_u8 fid** *,* **\_\_u32 nsid** *,* **\_\_u32 cdw11** *,* **bool save** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- fid

  Feature identifier

- nsid

  Namespace ID, if applicable

- cdw11

  Value to set the feature to

- save

  Save value across power states

- 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.
