---
name: "nvme_set_features_async_event"
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_async_event"
---

# nvme\_set\_features\_async\_event(2)

Set asynchronous event feature

## NAME

nvme\_set\_features\_async\_event - Set asynchronous event feature

## SYNOPSIS

**int nvme\_set\_features\_async\_event** **(int fd** *,* **\_\_u32 events** *,* **bool save** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- events

  Events to enable

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