smartmontools SVN Rev 5611
Utility to control and monitor storage systems with "S.M.A.R.T."
nvmeprint.h
Go to the documentation of this file.
1/*
2 * nvmeprint.h
3 *
4 * Home page of code is: https://www.smartmontools.org
5 *
6 * Copyright (C) 2016-22 Christian Franke
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef NVMEPRINT_H
12#define NVMEPRINT_H
13
14#define NVMEPRINT_H_CVSID "$Id: nvmeprint.h 5408 2022-09-18 14:50:33Z chrfranke $"
15
16#include "nvmecmds.h"
17
18// options for nvmePrintMain
20{
21 bool drive_info = false;
22 bool drive_capabilities = false;
23 bool smart_check_status = false;
24 bool smart_vendor_attrib = false;
25 bool smart_selftest_log = false;
26 unsigned char smart_selftest_type = 0; // 0 = no test, 1 = short, 2 = extended, 0xf = abort
27 unsigned error_log_entries = 0;
28 unsigned char log_page = 0;
29 unsigned log_page_size = 0;
30};
31
32int nvmePrintMain(nvme_device * device, const nvme_print_options & options);
33
34#endif // NVMEPRINT_H
NVMe device access.
int nvmePrintMain(nvme_device *device, const nvme_print_options &options)
Definition: nvmeprint.cpp:652
bool smart_selftest_log
Definition: nvmeprint.h:25
unsigned char smart_selftest_type
Definition: nvmeprint.h:26
unsigned char log_page
Definition: nvmeprint.h:28
unsigned log_page_size
Definition: nvmeprint.h:29
bool smart_vendor_attrib
Definition: nvmeprint.h:24
unsigned error_log_entries
Definition: nvmeprint.h:27
bool drive_capabilities
Definition: nvmeprint.h:22
bool smart_check_status
Definition: nvmeprint.h:23