.TH "libnvme_mi_aem_get_next_event" 9 "libnvme_mi_aem_get_next_event" "September 2026" "libnvme API manual" LINUX .SH NAME libnvme_mi_aem_get_next_event \- Get details for the next event to parse .SH SYNOPSIS .B "struct libnvme_mi_event *" libnvme_mi_aem_get_next_event .BI "(struct libnvme_mi_ep *ep " ");" .SH ARGUMENTS .IP "ep" 12 The endpoint with the event .SH "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. .SH "RETURN" Pointer no next libnvme_mi_event or NULL if this is the last one