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

Go to the source code of this file.


struct  _IDEREGS


#define STRANGE_BUFFER_LENGTH   (4+512*0xf8)


typedef struct _IDEREGS IDEREGS
typedef struct _IDEREGSPIDEREGS
typedef struct _IDEREGSLPIDEREGS


static void unsupported (int which)
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 *type)
int deviceclose (int fd)
static void print_ide_regs (const IDEREGS *r, int out)
int dani_ioctl (int device, int request, void *arg)
int ata_command_interface (int device, smart_command_set command, int select, char *data)
int do_scsi_cmnd_io (int fd, struct scsi_cmnd_io *iop, int report)


const char * os_XXXX_c_cvsid
static HFILE hDevice

Macro Definition Documentation

#define STRANGE_BUFFER_LENGTH   (4+512*0xf8)

Definition at line 357 of file os_os2.cpp.

Typedef Documentation

typedef struct _IDEREGS IDEREGS
typedef struct _IDEREGS * LPIDEREGS
typedef struct _IDEREGS * PIDEREGS

Function Documentation

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

Definition at line 359 of file os_os2.cpp.

int dani_ioctl ( int  device,
int  request,
void *  arg 

Definition at line 198 of file os_os2.cpp.

int deviceclose ( int  fd)

Definition at line 180 of file os_os2.cpp.

int deviceopen ( const char *  pathname,
char *  type 

Definition at line 154 of file os_os2.cpp.

int do_scsi_cmnd_io ( int  fd,
struct scsi_cmnd_io iop,
int  report 

Definition at line 526 of file os_os2.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 126 of file os_os2.cpp.

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

Definition at line 143 of file os_os2.cpp.

static void print_ide_regs ( const IDEREGS r,
int  out 

Definition at line 188 of file os_os2.cpp.

void print_smartctl_examples ( )

Definition at line 92 of file os_os2.cpp.

static const char* skipdev ( const char *  s)

Definition at line 119 of file os_os2.cpp.

static void unsupported ( int  which)

Definition at line 60 of file os_os2.cpp.

Variable Documentation

HFILE hDevice

Definition at line 38 of file os_os2.cpp.

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_os2.cpp 4120 2015-08-27 16:12:21Z samm2 $"
Definition: atacmds.h:28
Definition: scsicmds.h:33
Definition: os_os2.h:21
Definition: utility.h:28

Definition at line 34 of file os_os2.cpp.