NVME_GET_LOG_ENDURANCE_GROUP(2)

πŸ’– nvme_get_log_endurance_group β€” from the libnvme API manual, bestie πŸ’–

okay so we're cracking open nvme_get_log_endurance_group(2) today and honestly? she's a baddie. section 2, libnvme API manual, let's GO πŸ¦‹


✨ NAME ✨

nvme_get_log_endurance_group β€” Get Endurance Group log πŸ‘‘ (yes bestie, that's literally her whole job and she does it flawlessly)


🌸 SYNOPSIS 🌸

int nvme_get_log_endurance_group (int fd , __u16 endgid , struct
       nvme_endurance_group_log *log );

three args, one dream, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • fd β€” the File descriptor of nvme device. like, your lil handle to the actual drive. you need her, periodt.
  • endgid β€” the Starting group identifier to return in the list πŸ”₯ (it's a __u16, so mind your widths bestie)
  • log β€” the User address to store the endurance log 🫢 i.e. where the goods get written. your buffer, your problem, your slay.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. this log page? she tells you whether an Endurance Group Event has occurred for a particular Endurance Group. that's the whole vibe check.

and IF an Endurance Group Event has occurred, the details of that particular event are included in the Endurance Group Information log page for that Endurance Group. so it's like, this page is the doorbell, and the Information log page is who actually answered the door πŸšͺ✨

AND β€” this part is so underrated β€” an asynchronous event is generated when an entry for an Endurance Group is newly added to this log page. like the kernel literally pings you. not me getting notified over here 😭 iconic behaviour fr fr.


🌈 RETURN 🌈

she returns the nvme command status if a response was received (see enum nvme_status_field for the whole menu of moods) β€” OR -1 with errno set otherwise. so if you get -1, check your errno, because she's not gonna explain herself πŸ’€

bestie warning: -1 means go read errno. it is NOT a vibe, it's a signal. πŸ™ˆ

and that's the whole page, no notes πŸ’œ

sign-off time: this one's dated July 2026, straight out of the libnvme API manual (and yeah, the footer's a little chaotic β€” it literally reads nvme_get_log_endurance_nvme_get_log...urance_group(2) because the title got folded in on itself, we love a typographic moment ✨). go forth and log your endurance groups, you absolute main character 🌟

πŸ“¦ where this page comes from