|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|
LSI MegaRAID support. More...

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_device * | autodetect_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) |
LSI MegaRAID support.
Definition at line 865 of file os_linux.cpp.
| 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.
| 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.
unsigned int os_linux::linux_megaraid_device::m_busnum [private] |
Definition at line 884 of file os_linux.cpp.
unsigned int os_linux::linux_megaraid_device::m_disknum [private] |
Definition at line 883 of file os_linux.cpp.
int os_linux::linux_megaraid_device::m_fd [private] |
filedesc, -1 if not open.
Reimplemented from os_linux::linux_smart_device.
Definition at line 886 of file os_linux.cpp.
unsigned int os_linux::linux_megaraid_device::m_hba [private] |
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.
1.7.4