NVME_SET_FEATURES_RESV_PERSIST(2)
β¨ NAME β¨
nvme_set_features_resv_persist β set the persist through power loss feature, bestie π
This one lives in the libnvme API manual, so you already know it's a C library situation, no cap.
πΈ SYNOPSIS πΈ
int nvme_set_features_resv_persist (int fd , bool ptpl , bool save ,
__u32 *result );
π ARGUMENTS π
fdβ the file descriptor of your nvme device. like, the whole point of entry π«Άptplβ Persist Through Power Loss. yes that's the actual name, iconicsaveβ save this value across power states, so it survives the vibe shift πΎresultβ the command completion result, straight from CQE dword0 π
π¦ DESCRIPTION π¦
Deprecated: it doesn't support specifying a NSID. use nvme_set_features_resv_persist2 instead, periodt.
not me being the bearer of "this function is old news" news π it still works-ish but it literally cannot take a namespace ID, so if you need that, nvme_set_features_resv_persist2 is your girl. go there. iykyk.
π RETURN π
You get the nvme command status if a response came back (peep enum nvme_status_field for the deets), or -1 with errno set if it didn't. that's it, that's the whole return situation π
okay that's the page, my love β¨ this gem is from the libnvme API manual, dated July 2026 β go forth and set those features responsibly, muah ππΈππ¦
π¦ 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