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 your errno when 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