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_freebsd::freebsd_smart_device Class Reference

Implement shared open/close routines with old functions. More...

Collaboration diagram for os_freebsd::freebsd_smart_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 freebsd_smart_device ()
virtual ~freebsd_smart_device () throw ()
virtual bool is_open () const
 Return true if device is open.
virtual bool open ()
 Open device, return false on error.
virtual bool close ()
 Close device, return false on error.

Protected Member Functions

int get_fd () const
 Return filedesc for derived classes.
void set_fd (int fd)

Private Attributes

int m_fd
 filedesc, -1 if not open.

Detailed Description

Implement shared open/close routines with old functions.

Definition at line 134 of file os_freebsd.cpp.


Constructor & Destructor Documentation

os_freebsd::freebsd_smart_device::freebsd_smart_device ( ) [inline, explicit]

Definition at line 138 of file os_freebsd.cpp.

os_freebsd::freebsd_smart_device::~freebsd_smart_device ( ) throw () [virtual]

Definition at line 171 of file os_freebsd.cpp.


Member Function Documentation

bool os_freebsd::freebsd_smart_device::close ( ) [virtual]

Close device, return false on error.

Implements smart_device.

Reimplemented in os_freebsd::freebsd_scsi_device.

Definition at line 221 of file os_freebsd.cpp.

int os_freebsd::freebsd_smart_device::get_fd ( ) const [inline, protected]

Return filedesc for derived classes.

Definition at line 152 of file os_freebsd.cpp.

bool os_freebsd::freebsd_smart_device::is_open ( ) const [virtual]

Return true if device is open.

Implements smart_device.

Definition at line 205 of file os_freebsd.cpp.

bool os_freebsd::freebsd_smart_device::open ( ) [virtual]

Open device, return false on error.

Implements smart_device.

Reimplemented in os_freebsd::freebsd_escalade_device, os_freebsd::freebsd_highpoint_device, os_freebsd::freebsd_scsi_device, and os_freebsd::freebsd_cciss_device.

Definition at line 211 of file os_freebsd.cpp.

void os_freebsd::freebsd_smart_device::set_fd ( int  fd) [inline, protected]

Definition at line 155 of file os_freebsd.cpp.


Member Data Documentation

filedesc, -1 if not open.

Definition at line 159 of file os_freebsd.cpp.


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