---
name: "libnvme_mi_aem_get_next_event-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_mi_aem_get_next_event-libnvme3"
---

# libnvme\_mi\_aem\_get\_next\_event-libnvme3(2)

Get details for the next event to parse

## NAME

libnvme\_mi\_aem\_get\_next\_event - Get details for the next event to parse

## SYNOPSIS

**struct libnvme\_mi\_event \* libnvme\_mi\_aem\_get\_next\_event** **(struct libnvme\_mi\_ep \*ep** *);*

## ARGUMENTS

- ep

  The endpoint with the event

## DESCRIPTION

When inside a aem\_handler, call this and a returned struct pointer will provide details of event information.  Will return NULL when end of parsing is occurred. spec\_info and vend\_spec\_info must be copied to persist as they will not be valid after the handler\_next\_action has returned.

## RETURN

Pointer no next libnvme\_mi\_event or NULL if this is the last one
