smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Member Functions | Private Member Functions | Private Attributes
os_linux::linux_megaraid_device Class Reference

LSI MegaRAID support. More...

Collaboration diagram for os_linux::linux_megaraid_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 linux_megaraid_device (smart_interface *intf, const char *name, unsigned int bus, unsigned int tgt)
virtual ~linux_megaraid_device () throw ()
virtual smart_deviceautodetect_open ()
 Open device with autodetection support.
virtual bool open ()
 Open device, return false on error.
virtual bool close ()
 Close device, return false on error.
virtual bool scsi_pass_through (scsi_cmnd_io *iop)
 SCSI pass through.

Private Member Functions

bool megasas_cmd (int cdbLen, void *cdb, int dataLen, void *data, int senseLen, void *sense, int report, int direction)
bool megadev_cmd (int cdbLen, void *cdb, int dataLen, void *data, int senseLen, void *sense, int report, int direction)

Private Attributes

unsigned int m_disknum
unsigned int m_busnum
unsigned int m_hba
int m_fd
 filedesc, -1 if not open.
bool(linux_megaraid_device::* pt_cmd )(int cdblen, void *cdb, int dataLen, void *data, int senseLen, void *sense, int report, int direction)

Detailed Description

LSI MegaRAID support.

Definition at line 865 of file os_linux.cpp.


Constructor & Destructor Documentation

os_linux::linux_megaraid_device::linux_megaraid_device ( smart_interface intf,
const char *  name,
unsigned int  bus,
unsigned int  tgt 
)

Definition at line 896 of file os_linux.cpp.

os_linux::linux_megaraid_device::~linux_megaraid_device ( ) throw () [virtual]

Definition at line 907 of file os_linux.cpp.


Member Function Documentation

smart_device * os_linux::linux_megaraid_device::autodetect_open ( ) [virtual]

Open device with autodetection support.

May return another device for further access. In this case, the original pointer is no longer valid. Default implementation calls 'open()' and returns 'this'.

Reimplemented from smart_device.

Definition at line 913 of file os_linux.cpp.

bool os_linux::linux_megaraid_device::close ( ) [virtual]

Close device, return false on error.

Reimplemented from os_linux::linux_smart_device.

Definition at line 1012 of file os_linux.cpp.

bool os_linux::linux_megaraid_device::megadev_cmd ( int  cdbLen,
void *  cdb,
int  dataLen,
void *  data,
int  senseLen,
void *  sense,
int  report,
int  direction 
) [private]

Definition at line 1140 of file os_linux.cpp.

bool os_linux::linux_megaraid_device::megasas_cmd ( int  cdbLen,
void *  cdb,
int  dataLen,
void *  data,
int  senseLen,
void *  sense,
int  report,
int  direction 
) [private]

Definition at line 1077 of file os_linux.cpp.

bool os_linux::linux_megaraid_device::open ( ) [virtual]

Open device, return false on error.

Reimplemented from os_linux::linux_smart_device.

Definition at line 954 of file os_linux.cpp.

bool os_linux::linux_megaraid_device::scsi_pass_through ( scsi_cmnd_io iop) [virtual]

SCSI pass through.

Returns false on error.

Implements scsi_device.

Definition at line 1021 of file os_linux.cpp.


Member Data Documentation

Definition at line 884 of file os_linux.cpp.

Definition at line 883 of file os_linux.cpp.

filedesc, -1 if not open.

Reimplemented from os_linux::linux_smart_device.

Definition at line 886 of file os_linux.cpp.

Definition at line 885 of file os_linux.cpp.

bool(linux_megaraid_device::* os_linux::linux_megaraid_device::pt_cmd)(int cdblen, void *cdb, int dataLen, void *data, int senseLen, void *sense, int report, int direction) [private]

Definition at line 888 of file os_linux.cpp.


The documentation for this class was generated from the following file: