|
gem5
v21.0.1.0
|
Holds a single file descriptor mapping and that mapping's data for processes running in syscall emulation mode. More...
#include <fd_entry.hh>
Public Member Functions | |
| FDEntry (bool close_on_exec=false) | |
| virtual std::shared_ptr< FDEntry > | clone () 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 () |
| 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) |
Holds a single file descriptor mapping and that mapping's data for processes running in syscall emulation mode.
Definition at line 49 of file fd_entry.hh.
|
inline |
Definition at line 52 of file fd_entry.hh.
|
pure virtual |
Implemented in SocketFDEntry, DeviceFDEntry, PipeFDEntry, FileFDEntry, and HBFDEntry.
|
inline |
Definition at line 58 of file fd_entry.hh.
References _closeOnExec.
|
virtual |
Serialize an object.
Output an object's state into the current checkpoint section.
| cp | Checkpoint state |
Implements Serializable.
Reimplemented in DeviceFDEntry, PipeFDEntry, and FileFDEntry.
Definition at line 39 of file fd_entry.cc.
References _closeOnExec, and SERIALIZE_SCALAR.
|
inline |
Definition at line 60 of file fd_entry.hh.
References _closeOnExec.
|
virtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
| cp | Checkpoint state |
Implements Serializable.
Reimplemented in DeviceFDEntry, PipeFDEntry, and FileFDEntry.
Definition at line 45 of file fd_entry.cc.
References _closeOnExec, and UNSERIALIZE_SCALAR.
|
protected |
Definition at line 66 of file fd_entry.hh.
Referenced by getCOE(), serialize(), FileFDEntry::serialize(), PipeFDEntry::serialize(), DeviceFDEntry::serialize(), setCOE(), unserialize(), FileFDEntry::unserialize(), PipeFDEntry::unserialize(), and DeviceFDEntry::unserialize().