gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ArmFreebsd32 ArmFreebsd64 AlphaLinux ArmLinux32 ArmLinux64 MipsLinux PowerLinux RiscvLinux SparcLinux X86Linux32 X86Linux64 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 54 of file operatingsystem.hh.

Member Typedef Documentation

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 61 of file operatingsystem.hh.

Definition at line 64 of file operatingsystem.hh.

Member Function Documentation

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

Definition at line 37 of file operatingsystem.cc.

References warn.

Member Data Documentation

const int OperatingSystem::_SYS_NMLN = 65
static

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

Definition at line 67 of file operatingsystem.hh.


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

Generated on Fri Jun 9 2017 13:04:16 for gem5 by doxygen 1.8.6