smartmontools SVN Rev 5613
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

◆ ata_command_interface()

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

Definition at line 399 of file os_os2.cpp.

◆ dani_ioctl()

static int dani_ioctl ( int  device,
void *  arg 

Definition at line 240 of file os_os2.cpp.

◆ deviceclose()

int deviceclose ( int  fd)

Definition at line 229 of file os_os2.cpp.

◆ deviceopen()

int deviceopen ( const char *  pathname,
char *  type 

Definition at line 186 of file os_os2.cpp.

◆ do_scsi_cmnd_io()

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

Definition at line 528 of file os_os2.cpp.

◆ guess_device_type()

int guess_device_type ( const char *  dev_name)

Definition at line 58 of file os_os2.cpp.

◆ make_device_names()

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

Definition at line 74 of file os_os2.cpp.

◆ print_smartctl_examples()

void print_smartctl_examples ( )

Definition at line 39 of file os_os2.cpp.

◆ skipdev()

static const char * skipdev ( const char *  s)

Definition at line 51 of file os_os2.cpp.

Variable Documentation

◆ hDevice

HFILE hDevice

Definition at line 34 of file os_os2.cpp.

◆ os_XXXX_c_cvsid

const char* os_XXXX_c_cvsid
Initial value:
="$Id: os_os2.cpp 5376 2022-05-01 12:49:30Z chrfranke $"
Definition: atacmds.h:16
Definition: os_os2.h:14
Definition: scsicmds.h:22
Definition: utility.h:16

Definition at line 30 of file os_os2.cpp.