nvme_mi_adm...ance_grp_evt(2)
β¨ NAME β¨
nvme_mi_admin_get_log_endurance_grp_evt β Retrieve Rotational Media Information π
okay so literally this is the libnvme API manual bestie, and this lil function is the one you call when you wanna go grab that log π
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_endurance_grp_evt (nvme_mi_ctrl_t ctrl , bool
rae , __u32 offset , __u32 len , void *log );
like. five args. no default vibes, you're bringing all of them yourself π«Ά
π ARGUMENTS π
ctrlβ the Controller you're querying, aka who we're asking πraeβ Retain asynchronous events, yes ma'am, hold onto those π¦offsetβ Offset to the start of the log page, where the reading begins β¨lenβ The allocated length of the log page, so how much room you gave it πlogβ User address to store the log page, the lil home where the results go π
π RETURN π
So here's the tea β β you get The nvme command status if a response was received (see enum nvme_status_field), or -1 with errno set otherwise. that's it, that's the whole deal, no cap π
fr fr bestie, check yourerrnowhen you see that-1β it's not being dramatic for no reason π
and that's the whole page!! short and iconic, just like us π§π this was the libnvme API manual, dated July 2026 β mwah, go slay some endurance group events ππ β¨
π¦ 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