NVME_MI_ADMIN_GET_LOG_PERSISTENT_EVENT(2)
β¨ NAME β¨
nvme_mi_admin_get_log_persistent_event β bestie, this is how you Retrieve Persistent Event Log π (it lives in the libnvme API manual, section 2, if you were wondering where it hangs out)
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_persistent_event (nvme_mi_ctrl_t ctrl , enum
nvme_pevent_log_action action , __u32 size , void *pevent_log );
π ARGUMENTS π
ctrlβ the Controller you're querying. This is the one you're asking, okay, they're the main character here πactionβ the Action the controller should take while it's processing this command. Lowkey this is you telling it how to behave.sizeβ the Size ofpevent_log. Gotta tell it how much room there is, no cap.pevent_logβ the User address to store the persistent event log. This is where the tea gets written π
π RETURN π
It hands you back the nvme command status if a response was received (see enum nvme_status_field) β or, and this is the not-so-slay part, -1 with errno set otherwise. π
So like, always check. A-1means checkerrno, fr fr.
that's the whole page, babe, go forth and log your persistent events β¨π¦
signing off from the libnvme API manual, July 2026 edition ππ β stay iconic, drink water, and read your enum nvme_status_field like the queen you are π
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· 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