DOKK / manpages / debian 12 / libnvme-dev / nvme_set_features_err_recovery.2.en
nvme_set_features_err_recovery(2) libnvme API manual nvme_set_features_err_recovery(2)

nvme_set_features_err_recovery - Set error recovery feature

int nvme_set_features_err_recovery (int fd , __u32 nsid , __u16 tler , bool dulbe , bool save , __u32 *result );

File descriptor of nvme device
Namespace ID
Time-limited error recovery value
Deallocated or Unwritten Logical Block Error Enable
Save value across power states
The command completion result from CQE dword0

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_set_features_err_recovery January 2023