smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
anonymous_namespace{atacmds.cpp}::parsed_ata_device Class Reference
Collaboration diagram for anonymous_namespace{atacmds.cpp}::parsed_ata_device:
Collaboration graph
[legend]

List of all members.

Classes

struct  parsed_ata_command

Public Member Functions

 parsed_ata_device (smart_interface *intf, const char *dev_name)
virtual ~parsed_ata_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.
virtual bool ata_identify_is_cached () const
 Return true if OS caches ATA identify sector.

Protected Member Functions

virtual int ata_command_interface (smart_command_set command, int select, char *data)
 Old ATA interface called by ata_pass_through()

Private Types

enum  { max_num_commands = 32 }

Private Attributes

parsed_ata_command m_command_table [max_num_commands]
int m_num_commands
int m_next_replay_command
bool m_replay_out_of_sync
bool m_ata_identify_is_cached

Detailed Description

Definition at line 2832 of file atacmds.cpp.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
max_num_commands 

Definition at line 2861 of file atacmds.cpp.


Constructor & Destructor Documentation

anonymous_namespace{atacmds.cpp}::parsed_ata_device::parsed_ata_device ( smart_interface intf,
const char *  dev_name 
)

Definition at line 2908 of file atacmds.cpp.

anonymous_namespace{atacmds.cpp}::parsed_ata_device::~parsed_ata_device ( ) throw () [virtual]

Definition at line 2918 of file atacmds.cpp.


Member Function Documentation

int anonymous_namespace{atacmds.cpp}::parsed_ata_device::ata_command_interface ( smart_command_set  command,
int  select,
char *  data 
) [protected, virtual]

Old ATA interface called by ata_pass_through()

Implements ata_device_with_command_set.

Definition at line 3090 of file atacmds.cpp.

bool anonymous_namespace{atacmds.cpp}::parsed_ata_device::ata_identify_is_cached ( ) const [virtual]

Return true if OS caches ATA identify sector.

Default implementation returns false.

Reimplemented from ata_device.

Definition at line 3083 of file atacmds.cpp.

bool anonymous_namespace{atacmds.cpp}::parsed_ata_device::close ( ) [virtual]

Close device, return false on error.

Implements smart_device.

Definition at line 3064 of file atacmds.cpp.

bool anonymous_namespace{atacmds.cpp}::parsed_ata_device::is_open ( ) const [virtual]

Return true if device is open.

Implements smart_device.

Definition at line 2923 of file atacmds.cpp.

bool anonymous_namespace{atacmds.cpp}::parsed_ata_device::open ( ) [virtual]

Open device, return false on error.

Implements smart_device.

Definition at line 2929 of file atacmds.cpp.


Member Data Documentation

bool anonymous_namespace{atacmds.cpp}::parsed_ata_device::m_ata_identify_is_cached [private]

Definition at line 2867 of file atacmds.cpp.

parsed_ata_command anonymous_namespace{atacmds.cpp}::parsed_ata_device::m_command_table[max_num_commands] [private]

Definition at line 2862 of file atacmds.cpp.

int anonymous_namespace{atacmds.cpp}::parsed_ata_device::m_next_replay_command [private]

Definition at line 2865 of file atacmds.cpp.

int anonymous_namespace{atacmds.cpp}::parsed_ata_device::m_num_commands [private]

Definition at line 2864 of file atacmds.cpp.

bool anonymous_namespace{atacmds.cpp}::parsed_ata_device::m_replay_out_of_sync [private]

Definition at line 2866 of file atacmds.cpp.


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