17#define NVMECMDS_H_CVSID "$Id: nvmecmds.h 5630 2024-10-23 17:15:56Z chrfranke $"
134 unsigned char vs[1024];
172 unsigned char vs[3712];
270 void *
data,
unsigned size,
bool lpo_sup,
unsigned offset = 0);
274 unsigned num_entries,
bool lpo_sup);
289 {
return !!(status & 0x07ff); }
301template <
size_t SIZE>
bool nvme_read_self_test_log(nvme_device *device, uint32_t nsid, smartmontools::nvme_self_test_log &self_test_log)
bool nvme_read_id_ns(nvme_device *device, unsigned nsid, smartmontools::nvme_id_ns &id_ns)
int nvme_status_to_errno(uint16_t status)
unsigned char nvme_debugmode
bool nvme_read_smart_log(nvme_device *device, uint32_t nsid, smartmontools::nvme_smart_log &smart_log)
bool nvme_self_test(nvme_device *device, uint8_t stc, uint32_t nsid)
unsigned nvme_read_error_log(nvme_device *device, smartmontools::nvme_error_log_page *error_log, unsigned num_entries, bool lpo_sup)
constexpr bool nvme_status_is_error(uint16_t status)
const char * nvme_status_to_str(uint16_t status)
bool nvme_read_id_ctrl(nvme_device *device, smartmontools::nvme_id_ctrl &id_ctrl)
unsigned nvme_read_log_page(nvme_device *device, unsigned nsid, unsigned char lid, void *data, unsigned size, bool lpo_sup, unsigned offset=0)
const char * nvme_status_to_info_str(char *buf, size_t bufsize, uint16_t status)
constexpr uint32_t nvme_broadcast_nsid
unsigned short status_field
unsigned short parm_error_location