gem5  v20.1.0.0
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
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 OperatingSystem:
FreeBSD Linux Solaris ArmFreebsd ArmLinux MipsLinux PowerLinux RiscvLinux SparcLinux X86Linux 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. More...
 
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). More...
 

Detailed Description

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

Definition at line 52 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 59 of file operatingsystem.hh.

◆ tgt_stat64

Definition at line 62 of file operatingsystem.hh.

Member Function Documentation

◆ openSpecialFile()

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

Definition at line 35 of file operatingsystem.cc.

References warn.

Member Data Documentation

◆ _SYS_NMLN

const int OperatingSystem::_SYS_NMLN = 65
static

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

Definition at line 65 of file operatingsystem.hh.


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

Generated on Wed Sep 30 2020 14:02:28 for gem5 by doxygen 1.8.17