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, iconic
  • save β€” 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