smartmontools  SVN Rev 4559
Utility to control and monitor storage systems with "S.M.A.R.T."
Macros | Enumerations | Functions | Variables
smartctl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define SMARTCTL_H_CVSID   "$Id: smartctl.h 4431 2017-08-08 19:38:15Z chrfranke $\n"
#define FAILCMD   (0x01<<0)
#define FAILDEV   (0x01<<1)
#define FAILPOWER   (0x01<<1)
#define FAILID   (0x01<<1)
#define FAILSMART   (0x01<<2)
#define FAILSTATUS   (0x01<<3)
#define FAILATTR   (0x01<<4)
#define FAILAGE   (0x01<<5)
#define FAILERR   (0x01<<6)
#define FAILLOG   (0x01<<7)


enum  failure_type { OPTIONAL_CMD, MANDATORY_CMD }


void failuretest (failure_type type, int returnvalue)
void print_on ()
void print_off ()


bool failuretest_conservative
unsigned char failuretest_permissive
bool printing_is_switchable
bool printing_is_off

Macro Definition Documentation

#define FAILAGE   (0x01<<5)

Definition at line 56 of file smartctl.h.

#define FAILATTR   (0x01<<4)

Definition at line 52 of file smartctl.h.

#define FAILCMD   (0x01<<0)

Definition at line 34 of file smartctl.h.

#define FAILDEV   (0x01<<1)

Definition at line 37 of file smartctl.h.

#define FAILERR   (0x01<<6)

Definition at line 59 of file smartctl.h.

#define FAILID   (0x01<<1)

Definition at line 43 of file smartctl.h.

#define FAILLOG   (0x01<<7)

Definition at line 62 of file smartctl.h.

#define FAILPOWER   (0x01<<1)

Definition at line 40 of file smartctl.h.

#define FAILSMART   (0x01<<2)

Definition at line 46 of file smartctl.h.

#define FAILSTATUS   (0x01<<3)

Definition at line 49 of file smartctl.h.

#define SMARTCTL_H_CVSID   "$Id: smartctl.h 4431 2017-08-08 19:38:15Z chrfranke $\n"

Definition at line 29 of file smartctl.h.

Enumeration Type Documentation


Definition at line 69 of file smartctl.h.

Function Documentation

void failuretest ( failure_type  type,
int  returnvalue 

Definition at line 1220 of file smartctl.cpp.

void print_off ( )

Definition at line 92 of file smartctl.h.

void print_on ( )

Definition at line 87 of file smartctl.h.

Variable Documentation

bool failuretest_conservative

Definition at line 1214 of file smartctl.cpp.

unsigned char failuretest_permissive

Definition at line 1215 of file smartctl.cpp.

bool printing_is_off

Definition at line 60 of file smartctl.cpp.

bool printing_is_switchable

Definition at line 59 of file smartctl.cpp.