gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
FDEntry Class Referenceabstract

Holds a single file descriptor mapping and that mapping's data for processes running in syscall emulation mode. More...

#include <fd_entry.hh>

Inheritance diagram for FDEntry:
Serializable DeviceFDEntry HBFDEntry FileFDEntry PipeFDEntry SocketFDEntry

Public Member Functions

 FDEntry (bool close_on_exec=false)
 
virtual std::shared_ptr< FDEntryclone () const =0
 
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

bool _closeOnExec
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Holds a single file descriptor mapping and that mapping's data for processes running in syscall emulation mode.

Definition at line 51 of file fd_entry.hh.

Constructor & Destructor Documentation

◆ FDEntry()

FDEntry::FDEntry ( bool  close_on_exec = false)
inline

Definition at line 54 of file fd_entry.hh.

References clone().

Member Function Documentation

◆ clone()

virtual std::shared_ptr<FDEntry> FDEntry::clone ( ) const
pure virtual

Implemented in SocketFDEntry, DeviceFDEntry, PipeFDEntry, FileFDEntry, and HBFDEntry.

Referenced by FDEntry().

◆ getCOE()

bool FDEntry::getCOE ( ) const
inline

Definition at line 60 of file fd_entry.hh.

References _closeOnExec.

◆ serialize()

void FDEntry::serialize ( CheckpointOut cp) const
virtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Reimplemented in DeviceFDEntry, PipeFDEntry, and FileFDEntry.

Definition at line 41 of file fd_entry.cc.

References _closeOnExec, and SERIALIZE_SCALAR.

Referenced by DeviceFDEntry::getFileName(), setCOE(), PipeFDEntry::setEndType(), and FileFDEntry::setFileOffset().

◆ setCOE()

void FDEntry::setCOE ( bool  close_on_exec)
inline

Definition at line 62 of file fd_entry.hh.

References _closeOnExec, serialize(), and unserialize().

◆ unserialize()

void FDEntry::unserialize ( CheckpointIn cp)
virtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Reimplemented in DeviceFDEntry, PipeFDEntry, and FileFDEntry.

Definition at line 47 of file fd_entry.cc.

References _closeOnExec, and UNSERIALIZE_SCALAR.

Referenced by DeviceFDEntry::getFileName(), setCOE(), PipeFDEntry::setEndType(), and FileFDEntry::setFileOffset().

Member Data Documentation

◆ _closeOnExec

bool FDEntry::_closeOnExec
protected

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

Generated on Fri Feb 28 2020 16:27:11 for gem5 by doxygen 1.8.13