NVME_GET_FEATURES_ERR_RECOVERY(2)
π nvme_get_features_err_recovery β bestie edition π
okay so this is a little function from the libnvme API manual, section 2 (that's the syscall/library-functions girlies π ). buckle up, it's a short one but it's got β¨loreβ¨.
πΈ NAME πΈ
nvme_get_features_err_recovery β get the error recovery feature π lowkey iconic
π SYNOPSIS π
int nvme_get_features_err_recovery (int fd , enum nvme_get_features_sel
sel , __u32 *result );
like. it takes three things. that's it. that's the whole vibe π¦
β¨ ARGUMENTS β¨
fdβ the file descriptor of your nvme device π«Ά the lil handle that says "yes hello, this drive right here"selβ which type of attribute you want back, fr fr. it's aenum nvme_get_features_selsituation, so go look at that enum for your optionsresultβ the command completion result, straight from CQE dword0 π yes that's really what it says. that's where the answer lands
π DESCRIPTION π
so. um. Deprecated. not me having to tell you this π
it doesn't support specifying a NSID. that's the whole problem. that's the tea. π
use nvme_get_features_err_recovery2 instead β she's the upgraded version, she supports the NSID, she ate π
β¨
bestie if you're writing new code, please don't reach for this one. i'm not mad, i'm just disappointed π
π RETURN π
the return value is the nvme command status if a response was received β peep enum nvme_status_field for what those numbers mean, iykyk π
or, if things went sideways: -1 with errno set. so yeah, check errno, she'll tell you what happened π
π¦ SEE ALSO π¦
hmm, the original didn't actually give us a SEE ALSO section here π (i know, i know). but the description points you at nvme_get_features_err_recovery2, so that's your girl β¨
<div align="center">
π§ that's the whole page, no cap π§
this cutie was served fresh from the libnvme kitchen, dated July 2026 β page nvme_get_features_err_recovery(2) of the libnvme API manual ππ
now go forth and use the 2 version, bestie. periodt. π
π
</div>
π¦ 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