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

# nvme\_get\_log\_persistent\_event(2)

Retrieve Persistent Event Log

## NAME

nvme\_get\_log\_persistent\_event - Retrieve Persistent Event Log

## SYNOPSIS

**int nvme\_get\_log\_persistent\_event** **(int fd** *,* **enum nvme\_pevent\_log\_action action** *,* **\_\_u32 size** *,* **void \*pevent\_log** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- action

  Action the controller should take during processing this command

- size

  Size of *pevent\_log*

- pevent\_log

  User address to store the persistent event log

## RETURN

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