nvme_get_fe...ce_event_cfg(2)
π nvme_get_features_endurance_event_cfg β bestie's guide to the endurance event config feature β¨
okay so this one lives in the libnvme API manual (section 2, the syscall/function zone π«Ά) and its full name is nvme_get_features_endurance_event_cfg. Yes the header truncates it to nvme_get_fe...ce_event_cfg(2) because even manpages have a character limit, tragic honestly π
πΈ NAME πΈ
nvme_get_features_endurance_event_cfg β get endurance event config feature π
lowkey the whole point: you're asking the drive for its endurance event configuration. that's it. that's the vibe. π
β¨ SYNOPSIS β¨
int nvme_get_features_endurance_event_cfg (int fd , enum
nvme_get_features_sel sel , __u16 endgid , __u32 *result );
not me typing enum nvme_get_features_sel across two lines like that, but okay, that's just how the page wraps it π
π¦ ARGUMENTS π¦
fdβ File descriptor of nvme device. this is your ticket to the drive, bestie, no fd no party πselβ Select which type of attribute to return, seeenum nvme_get_features_sel. you're picking what kind of attribute comes back at you β¨endgidβ Endurance Group Identifier. yes it's spelledendgid, notendgid... wait, that IS it. anyway, it's the Endurance Group Identifier πresultβ The command completion result from CQE dword0. this is where the answer lands, main character output slot π
β RETURN β
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
so like: real status = you got a reply π, -1 + errno = it went sideways and the errno is holding the receipts π
fr fr, if you get-1back, go checkerrnobefore you do anything else. the answer is in there, i promise π
that's the whole page, bestie. four arguments, one return, zero drama. π§
written with love from the libnvme API manual, dated July 2026 β signing off, mwah π β¨
π¦ 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