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

 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 173 of file os_netbsd.cpp.

int deviceclose ( int  fd)

Definition at line 167 of file os_netbsd.cpp.

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

Definition at line 153 of file os_netbsd.cpp.

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

Definition at line 341 of file os_netbsd.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 67 of file os_netbsd.cpp.

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

Definition at line 142 of file os_netbsd.cpp.

void print_smartctl_examples ( )

Definition at line 410 of file os_netbsd.cpp.

Variable Documentation

const char* dev_legacy_cpp_cvsid
Initial value:
= "$Id: dev_legacy.cpp 3263 2011-02-20 18:32:56Z chrfranke $"
#define DEV_INTERFACE_H_CVSID
Definition: dev_interface.h:21

Definition at line 28 of file dev_legacy.cpp.