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

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

◆ STRANGE_BUFFER_LENGTH

#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 
)
static

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)
static

Definition at line 51 of file os_os2.cpp.

Variable Documentation

◆ hDevice

HFILE hDevice
static

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 $"
#define ATACMDS_H_CVSID
Definition: atacmds.h:16
#define OS_XXXX_H_CVSID
Definition: os_os2.h:14
#define SCSICMDS_H_CVSID
Definition: scsicmds.h:22
#define UTILITY_H_CVSID
Definition: utility.h:16

Definition at line 30 of file os_os2.cpp.