---
name: "nvme_set_features_endurance_evt_cfg"
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_endurance_evt_cfg"
---

# nvme\_set\_features\_endurance\_evt\_cfg(2)

Set endurance event config feature

## NAME

nvme\_set\_features\_endurance\_evt\_cfg - Set endurance event config feature

## SYNOPSIS

**int nvme\_set\_features\_endurance\_evt\_cfg** **(int fd** *,* **\_\_u16 endgid** *,* **\_\_u8 egwarn** *,* **bool save** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- endgid

  Endurance Group Identifier

- egwarn

  Flags to enable warning, see *enum nvme\_eg\_critical\_warning\_flags*

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