#include "static_assert.h"
#include <stdint.h>
Go to the source code of this file.
|
#define | NVMECMDS_H_CVSID "$Id: nvmecmds.h 5408 2022-09-18 14:50:33Z chrfranke $" |
|
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_error_log_page)==64) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_id_power_state)==32) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_id_ctrl)==4096) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_lbaf)==4) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_id_ns)==4096) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_smart_log)==512) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_self_test_result)==28) |
|
| smartmontools::STATIC_ASSERT (sizeof(nvme_self_test_log)==564) |
|
bool | nvme_read_id_ctrl (nvme_device *device, smartmontools::nvme_id_ctrl &id_ctrl) |
|
bool | nvme_read_id_ns (nvme_device *device, unsigned nsid, smartmontools::nvme_id_ns &id_ns) |
|
unsigned | nvme_read_log_page (nvme_device *device, unsigned nsid, unsigned char lid, void *data, unsigned size, bool lpo_sup, unsigned offset=0) |
|
unsigned | nvme_read_error_log (nvme_device *device, smartmontools::nvme_error_log_page *error_log, unsigned num_entries, bool lpo_sup) |
|
bool | nvme_read_smart_log (nvme_device *device, smartmontools::nvme_smart_log &smart_log) |
|
bool | nvme_read_self_test_log (nvme_device *device, uint32_t nsid, smartmontools::nvme_self_test_log &self_test_log) |
|
bool | nvme_self_test (nvme_device *device, uint8_t stc, uint32_t nsid) |
|
◆ NVMECMDS_H_CVSID
#define NVMECMDS_H_CVSID "$Id: nvmecmds.h 5408 2022-09-18 14:50:33Z chrfranke $" |
◆ nvme_read_error_log()
◆ nvme_read_id_ctrl()
◆ nvme_read_id_ns()
◆ nvme_read_log_page()
unsigned nvme_read_log_page |
( |
nvme_device * |
device, |
|
|
unsigned |
nsid, |
|
|
unsigned char |
lid, |
|
|
void * |
data, |
|
|
unsigned |
size, |
|
|
bool |
lpo_sup, |
|
|
unsigned |
offset = 0 |
|
) |
| |
◆ nvme_read_self_test_log()
◆ nvme_read_smart_log()
◆ nvme_self_test()
bool nvme_self_test |
( |
nvme_device * |
device, |
|
|
uint8_t |
stc, |
|
|
uint32_t |
nsid |
|
) |
| |
◆ nvme_debugmode
unsigned char nvme_debugmode |
|
extern |