smartmontools  SVN Rev 4430
Utility to control and monitor storage systems with "S.M.A.R.T."
Macros | Functions | Variables
os_os2.cpp File Reference
#include "config.h"
#include "int64.h"
#include <ctype.h>
#include <errno.h>
#include "atacmds.h"
#include "scsicmds.h"
#include "utility.h"
#include "os_os2.h"
Include dependency graph for os_os2.cpp:

Go to the source code of this file.

Macros

#define STRANGE_BUFFER_LENGTH   (4+512*0xf8)
 

Functions

void print_smartctl_examples ()
 
static const char * skipdev (const char *s)
 
int guess_device_type (const char *dev_name)
 
int make_device_names (char ***devlist, const char *name)
 
int deviceopen (const char *pathname, char *)
 
int deviceclose (int)
 
static int dani_ioctl (int device, void *arg)
 
int ata_command_interface (int device, smart_command_set command, int select, char *data)
 
int do_scsi_cmnd_io (int, struct scsi_cmnd_io *, int)
 

Variables

const char * os_XXXX_c_cvsid
 
static HFILE hDevice
 

Macro Definition Documentation

#define STRANGE_BUFFER_LENGTH   (4+512*0xf8)

Definition at line 417 of file os_os2.cpp.

Function Documentation

int ata_command_interface ( int  device,
smart_command_set  command,
int  select,
char *  data 
)

Definition at line 419 of file os_os2.cpp.

static int dani_ioctl ( int  device,
void *  arg 
)
static

Definition at line 260 of file os_os2.cpp.

int deviceclose ( int  )

Definition at line 249 of file os_os2.cpp.

int deviceopen ( const char *  pathname,
char *   
)

Definition at line 206 of file os_os2.cpp.

int do_scsi_cmnd_io ( int  ,
struct scsi_cmnd_io ,
int   
)

Definition at line 548 of file os_os2.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 78 of file os_os2.cpp.

int make_device_names ( char ***  devlist,
const char *  name 
)

Definition at line 94 of file os_os2.cpp.

void print_smartctl_examples ( )

Definition at line 47 of file os_os2.cpp.

static const char* skipdev ( const char *  s)
static

Definition at line 71 of file os_os2.cpp.

Variable Documentation

HFILE hDevice
static

Definition at line 42 of file os_os2.cpp.

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_os2.cpp 4423 2017-04-23 19:14:02Z samm2 $"
#define ATACMDS_H_CVSID
Definition: atacmds.h:28
#define SCSICMDS_H_CVSID
Definition: scsicmds.h:33
#define OS_XXXX_H_CVSID
Definition: os_os2.h:21
#define UTILITY_H_CVSID
Definition: utility.h:28

Definition at line 38 of file os_os2.cpp.