gem5  v20.1.0.0
Public Member Functions | Protected Attributes | List of all members
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 HBFDEntry:
FDEntry Serializable FileFDEntry PipeFDEntry 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 FDEntry
 FDEntry (bool close_on_exec=false)
 
bool getCOE () 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 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 FDEntry
bool _closeOnExec
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 Serializes all the SimObjects. More...
 
static void unserializeGlobals (CheckpointIn &cp)
 

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 74 of file fd_entry.hh.

Constructor & Destructor Documentation

◆ HBFDEntry() [1/2]

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

Definition at line 77 of file fd_entry.hh.

◆ HBFDEntry() [2/2]

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

Definition at line 81 of file fd_entry.hh.

Member Function Documentation

◆ clone()

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

Implements FDEntry.

Reimplemented in SocketFDEntry, PipeFDEntry, and FileFDEntry.

Definition at line 86 of file fd_entry.hh.

◆ getFlags()

int HBFDEntry::getFlags ( ) const
inline

Definition at line 91 of file fd_entry.hh.

References _flags.

◆ getSimFD()

int HBFDEntry::getSimFD ( ) const
inline

Definition at line 92 of file fd_entry.hh.

References _simFD.

◆ setFlags()

void HBFDEntry::setFlags ( int  flags)
inline

Definition at line 94 of file fd_entry.hh.

References _flags.

◆ setSimFD()

void HBFDEntry::setSimFD ( int  sim_fd)
inline

Definition at line 95 of file fd_entry.hh.

References _simFD.

Member Data Documentation

◆ _flags

int HBFDEntry::_flags
protected

◆ _simFD

int HBFDEntry::_simFD
protected

Definition at line 99 of file fd_entry.hh.

Referenced by getSimFD(), and setSimFD().


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

Generated on Wed Sep 30 2020 14:02:26 for gem5 by doxygen 1.8.17