nvme_mi_aem_get_next_event(9)
β¨ nvme_mi_aem_get_next_event β¨
okay bestie, welcome to the libnvme API manual, section 9 β yes this is a kernel/API manpage and yes we're gonna make it cute π
πΈ NAME πΈ
nvme_mi_aem_get_next_event β get the deets for the next event so you can parse it π
π¦ SYNOPSIS π¦
struct nvme_mi_event * nvme_mi_aem_get_next_event (nvme_mi_ep_t ep );
π ARGUMENTS π
epβ the endpoint that's holding the event, like the one carrying the tea π«
π DESCRIPTION π
so like. when you're chilling inside an aem_handler, you call this function and the struct pointer it hands back gives you all the details about the event info. iconic behavior honestly.
It'll return NULL when the end of parsing has occurred β that's your signal that you've reached the last one, no more events, that's a wrap β¨.
β οΈ MAJOR heads up bestie, do not skip this:spec_infoandvend_spec_infomust be copied if you want them to persist. They are not valid after thehandler_next_actionhas returned. Like, the moment that handler comes back, those pointers are giving expired-milk energy π. Copy them, periodt.
π RETURN π
Pointer to the next nvme_mi_event, or NULL if this one is the last one πΈ
and that's the whole page, you ate that π«Ά This lil writeup lives in the libnvme API manual and it's dated August 2026 β yeah, future vibes, we're ahead of the game π¦π
π¦ where this page comes from
- fedora 44: libnvme-doc 1.16.2-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms