smartmontools  SVN Rev 4721
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.


#define STRANGE_BUFFER_LENGTH   (4+512*0xf8)


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)


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 

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 ,

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)

Definition at line 71 of file os_os2.cpp.

Variable Documentation

HFILE hDevice

Definition at line 42 of file os_os2.cpp.

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_os2.cpp 4431 2017-08-08 19:38:15Z chrfranke $"
Definition: atacmds.h:28
Definition: scsicmds.h:33
Definition: os_os2.h:21
Definition: utility.h:28

Definition at line 38 of file os_os2.cpp.