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

Go to the source code of this file.

Classes

class  os::legacy_smart_device
 Implement shared open/close routines with old functions. More...
class  os::legacy_ata_device
 Implement standard ATA support with old functions. More...
class  os::legacy_scsi_device
 Implement standard SCSI support with old functions. More...
class  os::legacy_smart_interface
 Implement platform interface with old functions. More...

Namespaces

namespace  os

Functions

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)
int ata_command_interface (int device, smart_command_set command, int select, char *data)
int do_scsi_cmnd_io (int dev_fd, struct scsi_cmnd_io *iop, int report)
void print_smartctl_examples ()
static void os::free_devnames (char **devnames, int numdevs)

Variables

const char * dev_legacy_cpp_cvsid

Function Documentation

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

Definition at line 330 of file os_darwin.cpp.

int deviceclose ( int  fd)

Definition at line 293 of file os_darwin.cpp.

int deviceopen ( const char *  pathname,
char *  type 
)

Definition at line 204 of file os_darwin.cpp.

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

Definition at line 423 of file os_darwin.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 75 of file os_darwin.cpp.

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

Definition at line 126 of file os_darwin.cpp.

void print_smartctl_examples ( )

Definition at line 51 of file os_darwin.cpp.


Variable Documentation

const char* dev_legacy_cpp_cvsid
Initial value:
"$Id: dev_legacy.cpp 3263 2011-02-20 18:32:56Z chrfranke $"
  DEV_INTERFACE_H_CVSID

Definition at line 28 of file dev_legacy.cpp.