smartmontools SVN Rev 5611
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 "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

◆ 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.

◆ 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.

Variable Documentation

◆ dev_legacy_cpp_cvsid

const char* dev_legacy_cpp_cvsid
Initial value:
= "$Id: dev_legacy.cpp 5198 2021-02-01 20:36:02Z chrfranke $"
#define DEV_INTERFACE_H_CVSID
Definition: dev_interface.h:14

Definition at line 21 of file dev_legacy.cpp.