smartmontools
SVN Rev 5640
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
19
struct
nvme_print_options
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
32
int
nvmePrintMain
(
nvme_device
* device,
const
nvme_print_options
& options);
33
34
#endif
// NVMEPRINT_H
nvme_device
NVMe device access.
Definition:
dev_interface.h:704
nvmecmds.h
nvmePrintMain
int nvmePrintMain(nvme_device *device, const nvme_print_options &options)
Definition:
nvmeprint.cpp:652
nvme_print_options
Definition:
nvmeprint.h:20
nvme_print_options::smart_selftest_log
bool smart_selftest_log
Definition:
nvmeprint.h:25
nvme_print_options::smart_selftest_type
unsigned char smart_selftest_type
Definition:
nvmeprint.h:26
nvme_print_options::log_page
unsigned char log_page
Definition:
nvmeprint.h:28
nvme_print_options::log_page_size
unsigned log_page_size
Definition:
nvmeprint.h:29
nvme_print_options::smart_vendor_attrib
bool smart_vendor_attrib
Definition:
nvmeprint.h:24
nvme_print_options::error_log_entries
unsigned error_log_entries
Definition:
nvmeprint.h:27
nvme_print_options::drive_capabilities
bool drive_capabilities
Definition:
nvmeprint.h:22
nvme_print_options::drive_info
bool drive_info
Definition:
nvmeprint.h:21
nvme_print_options::smart_check_status
bool smart_check_status
Definition:
nvmeprint.h:23
Generated on Wed Nov 20 2024 22:05:02 for smartmontools by
1.9.6