gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::OperatingSystem Class Reference

This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to an operating system syscall interface. More...

#include <operatingsystem.hh>

Inheritance diagram for gem5::OperatingSystem:
gem5::FreeBSD gem5::Linux gem5::Solaris gem5::ArmFreebsd gem5::ArmLinux gem5::MipsLinux gem5::PowerLinux gem5::RiscvLinux gem5::SparcLinux gem5::X86Linux gem5::SparcSolaris

Classes

struct  rlimit
 Limit struct for getrlimit/setrlimit. More...
struct  rusage
 For getrusage(). More...
struct  tgt_iovec
struct  timeval
 For gettimeofday(). More...
struct  utsname
 Interface struct for uname(). More...

Public Types

typedef void tgt_stat
 Stat buffer.
typedef void tgt_stat64

Static Public Member Functions

static int openSpecialFile (std::string path, Process *process, ThreadContext *tc)

Static Public Attributes

static const int _SYS_NMLN = 65
 Length of strings in struct utsname (plus 1 for null char).

Detailed Description

This class encapsulates the types, structures, constants, functions, and syscall-number mappings specific to an operating system syscall interface.

Definition at line 47 of file operatingsystem.hh.

Member Typedef Documentation

◆ tgt_stat

Stat buffer.

Note that we can't call it 'stat' since that gets #defined to something else on some systems. This type can be specialized by architecture specific "Linux" classes

Definition at line 55 of file operatingsystem.hh.

◆ tgt_stat64

Definition at line 58 of file operatingsystem.hh.

Member Function Documentation

◆ openSpecialFile()

int gem5::OperatingSystem::openSpecialFile ( std::string path,
Process * process,
ThreadContext * tc )
static

Definition at line 38 of file operatingsystem.cc.

References warn.

Member Data Documentation

◆ _SYS_NMLN

const int gem5::OperatingSystem::_SYS_NMLN = 65
static

Length of strings in struct utsname (plus 1 for null char).

Definition at line 61 of file operatingsystem.hh.


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

Generated on Sat Oct 18 2025 08:06:52 for gem5 by doxygen 1.14.0