smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Member Functions | Protected Member Functions | Private Attributes
os_win32::win_csmi_device Class Reference
Collaboration diagram for os_win32::win_csmi_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 win_csmi_device (smart_interface *intf, const char *dev_name, const char *req_type)
virtual ~win_csmi_device () throw ()
virtual bool open ()
 Open device, return false on error.
virtual bool close ()
 Close device, return false on error.
virtual bool is_open () const
 Return true if device is open.
bool open_scsi ()

Protected Member Functions

virtual bool csmi_ioctl (unsigned code, IOCTL_HEADER *csmi_buffer, unsigned csmi_bufsiz)
 Call platform-specific CSMI ioctl.

Private Attributes

HANDLE m_fh
 Controller device handle.
int m_port
 Port number.

Detailed Description

Definition at line 445 of file os_win32.cpp.


Constructor & Destructor Documentation

os_win32::win_csmi_device::win_csmi_device ( smart_interface intf,
const char *  dev_name,
const char *  req_type 
)

Definition at line 3113 of file os_win32.cpp.

os_win32::win_csmi_device::~win_csmi_device ( ) throw () [virtual]

Definition at line 3120 of file os_win32.cpp.


Member Function Documentation

bool os_win32::win_csmi_device::close ( ) [virtual]

Close device, return false on error.

Implements smart_device.

Definition at line 3131 of file os_win32.cpp.

bool os_win32::win_csmi_device::csmi_ioctl ( unsigned  code,
IOCTL_HEADER *  csmi_buffer,
unsigned  csmi_bufsiz 
) [protected, virtual]

Call platform-specific CSMI ioctl.

Implements os_win32::csmi_device.

Definition at line 3193 of file os_win32.cpp.

bool os_win32::win_csmi_device::is_open ( ) const [virtual]

Return true if device is open.

Implements smart_device.

Definition at line 3126 of file os_win32.cpp.

bool os_win32::win_csmi_device::open ( ) [virtual]

Open device, return false on error.

Implements smart_device.

Definition at line 3178 of file os_win32.cpp.

bool os_win32::win_csmi_device::open_scsi ( )

Definition at line 3141 of file os_win32.cpp.


Member Data Documentation

Controller device handle.

Definition at line 467 of file os_win32.cpp.

Port number.

Definition at line 468 of file os_win32.cpp.


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