gem5  v21.1.0.2
Public Member Functions | Protected Attributes | List of all members
gem5::HBFDEntry Class Reference

Extends the base class to include a host-backed file descriptor field that records the integer used to represent the file descriptor on the host and the file's flags. More...

#include <fd_entry.hh>

Inheritance diagram for gem5::HBFDEntry:
gem5::FDEntry gem5::Serializable gem5::FileFDEntry gem5::PipeFDEntry gem5::SocketFDEntry

Public Member Functions

 HBFDEntry (int flags, int sim_fd, bool close_on_exec=false)
 
 HBFDEntry (HBFDEntry const &reg, bool close_on_exec=false)
 
std::shared_ptr< FDEntryclone () const override
 
int getFlags () const
 
int getSimFD () const
 
void setFlags (int flags)
 
void setSimFD (int sim_fd)
 
- Public Member Functions inherited from gem5::FDEntry
 FDEntry (bool close_on_exec=false)
 
bool getCOE () const
 
FDClass getClass () const
 
void setCOE (bool close_on_exec)
 
virtual void serialize (CheckpointOut &cp) const
 Serialize an object. More...
 
virtual void unserialize (CheckpointIn &cp)
 Unserialize an object. More...
 
- Public Member Functions inherited from gem5::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 

Protected Attributes

int _flags
 
int _simFD
 
- Protected Attributes inherited from gem5::FDEntry
bool _closeOnExec
 
FDClass _class
 

Additional Inherited Members

- Public Types inherited from gem5::FDEntry
enum  FDClass {
  fd_base, fd_hb, fd_file, fd_pipe,
  fd_device, fd_socket, fd_null
}
 
- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it. More...
 

Detailed Description

Extends the base class to include a host-backed file descriptor field that records the integer used to represent the file descriptor on the host and the file's flags.

Definition at line 93 of file fd_entry.hh.

Constructor & Destructor Documentation

◆ HBFDEntry() [1/2]

gem5::HBFDEntry::HBFDEntry ( int  flags,
int  sim_fd,
bool  close_on_exec = false 
)
inline

Definition at line 96 of file fd_entry.hh.

References gem5::FDEntry::_class.

◆ HBFDEntry() [2/2]

gem5::HBFDEntry::HBFDEntry ( HBFDEntry const &  reg,
bool  close_on_exec = false 
)
inline

Definition at line 100 of file fd_entry.hh.

References gem5::FDEntry::_class.

Member Function Documentation

◆ clone()

std::shared_ptr<FDEntry> gem5::HBFDEntry::clone ( ) const
inlineoverridevirtual

Implements gem5::FDEntry.

Reimplemented in gem5::SocketFDEntry, gem5::PipeFDEntry, and gem5::FileFDEntry.

Definition at line 105 of file fd_entry.hh.

◆ getFlags()

int gem5::HBFDEntry::getFlags ( ) const
inline

Definition at line 110 of file fd_entry.hh.

References _flags.

◆ getSimFD()

int gem5::HBFDEntry::getSimFD ( ) const
inline

Definition at line 111 of file fd_entry.hh.

References _simFD.

◆ setFlags()

void gem5::HBFDEntry::setFlags ( int  flags)
inline

Definition at line 113 of file fd_entry.hh.

References _flags.

◆ setSimFD()

void gem5::HBFDEntry::setSimFD ( int  sim_fd)
inline

Definition at line 114 of file fd_entry.hh.

References _simFD.

Member Data Documentation

◆ _flags

int gem5::HBFDEntry::_flags
protected

◆ _simFD

int gem5::HBFDEntry::_simFD
protected

Definition at line 118 of file fd_entry.hh.

Referenced by getSimFD(), and setSimFD().


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

Generated on Tue Sep 21 2021 12:27:41 for gem5 by doxygen 1.8.17