libnvme\_mi\_aem\_get\_next\_event(9) libnvme API manual libnvme\_mi\_aem\_get\_next\_event(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[ep](#ep)

The endpoint with the event

# [DESCRIPTION](#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](#RETURN)

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

libnvme\_mi\_aem\_get\_next\_event September 2026

---

Document: libnvme_mi_aem_get_next_event-libnvme3(2) from nvme-cli 3.1-r1 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
