smartmontools  SVN Rev 4814
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 <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 397 of file os_os2.cpp.

Function Documentation

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

Definition at line 399 of file os_os2.cpp.

static int dani_ioctl ( int  device,
void *  arg 

Definition at line 240 of file os_os2.cpp.

int deviceclose ( int  )

Definition at line 229 of file os_os2.cpp.

int deviceopen ( const char *  pathname,
char *   

Definition at line 186 of file os_os2.cpp.

int do_scsi_cmnd_io ( int  ,
struct scsi_cmnd_io ,

Definition at line 528 of file os_os2.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 58 of file os_os2.cpp.

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

Definition at line 74 of file os_os2.cpp.

void print_smartctl_examples ( )

Definition at line 39 of file os_os2.cpp.

static const char* skipdev ( const char *  s)

Definition at line 51 of file os_os2.cpp.

Variable Documentation

HFILE hDevice

Definition at line 34 of file os_os2.cpp.

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_os2.cpp 4773 2018-09-12 20:14:44Z chrfranke $"
Definition: atacmds.h:16
Definition: scsicmds.h:22
Definition: os_os2.h:14
Definition: utility.h:16

Definition at line 30 of file os_os2.cpp.