gem5 v24.0.0.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 Types | |
enum | FDClass { fd_base , fd_hb , fd_file , fd_pipe , fd_device , fd_socket , fd_null } |
Public Member Functions | |
FDEntry (bool close_on_exec=false) | |
virtual std::shared_ptr< FDEntry > | clone () const =0 |
bool | getCOE () const |
FDClass | getClass () const |
void | setCOE (bool close_on_exec) |
virtual void | serialize (CheckpointOut &cp) const |
Serialize an object. | |
virtual void | unserialize (CheckpointIn &cp) |
Unserialize an object. | |
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. | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Protected Attributes | |
bool | _closeOnExec |
FDClass | _class |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. | |
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.
Enumerator | |
---|---|
fd_base | |
fd_hb | |
fd_file | |
fd_pipe | |
fd_device | |
fd_socket | |
fd_null |
Definition at line 55 of file fd_entry.hh.
|
inline |
Definition at line 66 of file fd_entry.hh.
|
pure virtual |
Implemented in gem5::DeviceFDEntry, gem5::FileFDEntry, gem5::HBFDEntry, gem5::PipeFDEntry, and gem5::SocketFDEntry.
|
inline |
Definition at line 74 of file fd_entry.hh.
References _class.
|
inline |
Definition at line 72 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 gem5::Serializable.
Reimplemented in gem5::DeviceFDEntry, gem5::FileFDEntry, and gem5::PipeFDEntry.
Definition at line 40 of file fd_entry.cc.
References _closeOnExec, and SERIALIZE_SCALAR.
|
inline |
Definition at line 76 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 gem5::Serializable.
Reimplemented in gem5::DeviceFDEntry, gem5::FileFDEntry, and gem5::PipeFDEntry.
Definition at line 46 of file fd_entry.cc.
References _closeOnExec, and UNSERIALIZE_SCALAR.
|
protected |
Definition at line 83 of file fd_entry.hh.
Referenced by gem5::DeviceFDEntry::DeviceFDEntry(), gem5::DeviceFDEntry::DeviceFDEntry(), FDEntry(), gem5::FileFDEntry::FileFDEntry(), gem5::FileFDEntry::FileFDEntry(), getClass(), gem5::HBFDEntry::HBFDEntry(), gem5::HBFDEntry::HBFDEntry(), gem5::PipeFDEntry::PipeFDEntry(), gem5::PipeFDEntry::PipeFDEntry(), gem5::SocketFDEntry::SocketFDEntry(), and gem5::SocketFDEntry::SocketFDEntry().
|
protected |
Definition at line 82 of file fd_entry.hh.
Referenced by getCOE(), gem5::DeviceFDEntry::serialize(), serialize(), gem5::FileFDEntry::serialize(), gem5::PipeFDEntry::serialize(), setCOE(), gem5::DeviceFDEntry::unserialize(), unserialize(), gem5::FileFDEntry::unserialize(), and gem5::PipeFDEntry::unserialize().