gem5
[DEVELOP-FOR-23.0]
|
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>
Public Member Functions | |
HBFDEntry (int flags, int sim_fd, bool close_on_exec=false) | |
HBFDEntry (HBFDEntry const ®, bool close_on_exec=false) | |
std::shared_ptr< FDEntry > | clone () const override |
int | getFlags () const |
int | getSimFD () const |
void | setFlags (int flags) |
void | setSimFD (int sim_fd) |
![]() | |
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... | |
![]() | |
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 |
![]() | |
bool | _closeOnExec |
FDClass | _class |
Additional Inherited Members | |
![]() | |
enum | FDClass { fd_base, fd_hb, fd_file, fd_pipe, fd_device, fd_socket, fd_null } |
![]() | |
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... | |
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 91 of file fd_entry.hh.
|
inline |
Definition at line 94 of file fd_entry.hh.
References gem5::FDEntry::_class.
|
inline |
Definition at line 98 of file fd_entry.hh.
References gem5::FDEntry::_class.
|
inlineoverridevirtual |
Implements gem5::FDEntry.
Reimplemented in gem5::SocketFDEntry, gem5::PipeFDEntry, and gem5::FileFDEntry.
Definition at line 103 of file fd_entry.hh.
|
inline |
Definition at line 108 of file fd_entry.hh.
References _flags.
|
inline |
Definition at line 109 of file fd_entry.hh.
References _simFD.
|
inline |
Definition at line 111 of file fd_entry.hh.
|
inline |
Definition at line 112 of file fd_entry.hh.
References _simFD.
|
protected |
Definition at line 115 of file fd_entry.hh.
Referenced by getFlags(), gem5::FileFDEntry::serialize(), gem5::PipeFDEntry::serialize(), setFlags(), gem5::FileFDEntry::unserialize(), and gem5::PipeFDEntry::unserialize().
|
protected |
Definition at line 116 of file fd_entry.hh.
Referenced by getSimFD(), and setSimFD().