gem5
[DEVELOP-FOR-23.0]
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
q
r
s
t
v
x
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
s
t
v
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
a
b
c
d
g
h
i
l
m
r
s
t
u
w
Enumerations
b
h
i
o
p
Enumerator
h
i
o
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
kern
solaris
solaris.hh
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Arm Limited
3
* All rights reserved
4
*
5
* The license below extends only to copyright in the software and shall
6
* not be construed as granting a license to any other intellectual
7
* property including but not limited to intellectual property relating
8
* to a hardware implementation of the functionality of the software
9
* licensed hereunder. You may use the software subject to the license
10
* terms below provided that you ensure that this notice is replicated
11
* unmodified and in its entirety in all distributions of the software,
12
* modified or unmodified, in source code or in binary form.
13
*
14
* Copyright (c) 2004-2005 The Regents of The University of Michigan
15
* All rights reserved.
16
*
17
* Redistribution and use in source and binary forms, with or without
18
* modification, are permitted provided that the following conditions are
19
* met: redistributions of source code must retain the above copyright
20
* notice, this list of conditions and the following disclaimer;
21
* redistributions in binary form must reproduce the above copyright
22
* notice, this list of conditions and the following disclaimer in the
23
* documentation and/or other materials provided with the distribution;
24
* neither the name of the copyright holders nor the names of its
25
* contributors may be used to endorse or promote products derived from
26
* this software without specific prior written permission.
27
*
28
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
*/
40
41
#ifndef __SOLARIS_HH__
42
#define __SOLARIS_HH__
43
44
#include "
base/types.hh
"
45
#include "
kern/operatingsystem.hh
"
46
47
namespace
gem5
48
{
49
55
class
Solaris
:
public
OperatingSystem
56
{
57
58
public
:
59
61
typedef
uint64_t
size_t
;
63
typedef
uint64_t
off_t
;
64
typedef
int64_t
time_t
;
65
typedef
int32_t
uid_t
;
66
typedef
int32_t
gid_t
;
67
typedef
uint64_t
rlim_t
;
68
typedef
uint64_t
ino_t
;
69
typedef
uint64_t
dev_t
;
70
typedef
uint32_t
mode_t
;
71
typedef
uint32_t
nlink_t
;
73
74
struct
tgt_timespec
75
{
76
int64_t
tv_sec
;
77
int64_t
tv_nsec
;
78
};
79
82
struct
tgt_stat
83
{
84
uint64_t
st_dev
;
85
uint64_t
st_ino
;
86
uint32_t
st_mode
;
87
uint32_t
st_nlink
;
88
int32_t
st_uid
;
89
int32_t
st_gid
;
90
uint64_t
st_rdev
;
91
int64_t
st_size
;
92
//struct tgt_timespec st_atimeX; //!< time of last access
93
//struct tgt_timespec st_mtimeX; //!< time of last modification
94
//struct tgt_timespec st_ctimeX; //!< time of last status change
95
int64_t
st_atimeX
,
st_mtimeX
,
st_ctimeX
;
96
int32_t
st_blksize
;
97
int64_t
st_blocks
;
98
char
st_fstype
[16];
99
};
100
101
// same for stat64
102
struct
tgt_stat64
103
{
104
uint64_t
st_dev
;
105
uint64_t
st_ino
;
106
uint32_t
st_mode
;
107
uint32_t
st_nlink
;
108
int32_t
st_uid
;
109
int32_t
st_gid
;
110
uint64_t
st_rdev
;
111
int64_t
st_size
;
112
//struct tgt_timespec st_atimeX; //!< time of last access
113
//struct tgt_timespec st_mtimeX; //!< time of last modification
114
//struct tgt_timespec st_ctimeX; //!< time of last status change
115
int64_t
st_atimeX
,
st_mtimeX
,
st_ctimeX
;
116
int32_t
st_blksize
;
117
int64_t
st_blocks
;
118
char
st_fstype
[16];
119
};
120
122
static
const
int
_SYS_NMLN
= 257;
123
125
struct
utsname
126
{
127
char
sysname
[
_SYS_NMLN
];
128
char
nodename
[
_SYS_NMLN
];
129
char
release
[
_SYS_NMLN
];
130
char
version
[
_SYS_NMLN
];
131
char
machine
[
_SYS_NMLN
];
132
};
133
134
// for *at syscalls
135
static
const
int
TGT_AT_FDCWD
= -100;
136
static
const
int
TGT_AT_REMOVEDIR
= 0x800;
137
138
};
// class Solaris
139
140
}
// namespace gem5
141
142
#endif // __SOLARIS_HH__
gem5::Solaris::tgt_stat64::st_nlink
uint32_t st_nlink
link count
Definition:
solaris.hh:107
gem5::Solaris::tgt_stat64
Definition:
solaris.hh:102
gem5::Solaris::utsname::version
char version[_SYS_NMLN]
OS version.
Definition:
solaris.hh:130
gem5::Solaris::time_t
int64_t time_t
Definition:
solaris.hh:64
gem5::Solaris::tgt_stat64::st_size
int64_t st_size
file size in bytes
Definition:
solaris.hh:111
gem5::Solaris::tgt_stat
Stat buffer.
Definition:
solaris.hh:82
gem5::Solaris::tgt_stat::st_dev
uint64_t st_dev
device
Definition:
solaris.hh:84
gem5::Solaris::utsname
Interface struct for uname().
Definition:
solaris.hh:125
gem5::Solaris::tgt_stat::st_uid
int32_t st_uid
owner's user ID
Definition:
solaris.hh:88
gem5::Solaris::tgt_stat::st_ino
uint64_t st_ino
inode
Definition:
solaris.hh:85
gem5::Solaris::utsname::machine
char machine[_SYS_NMLN]
Machine type.
Definition:
solaris.hh:131
gem5::Solaris::tgt_timespec::tv_sec
int64_t tv_sec
Definition:
solaris.hh:76
gem5::Solaris::tgt_stat64::st_ctimeX
int64_t st_ctimeX
Definition:
solaris.hh:115
gem5::Solaris::tgt_stat::st_blocks
int64_t st_blocks
number of blocks allocated
Definition:
solaris.hh:97
gem5::Solaris::tgt_timespec::tv_nsec
int64_t tv_nsec
Definition:
solaris.hh:77
gem5::Solaris::TGT_AT_FDCWD
static const int TGT_AT_FDCWD
Definition:
solaris.hh:135
gem5::Solaris::tgt_stat::st_blksize
int32_t st_blksize
optimal I/O block size
Definition:
solaris.hh:96
gem5::Solaris::tgt_stat64::st_atimeX
int64_t st_atimeX
Definition:
solaris.hh:115
gem5::Solaris::tgt_stat::st_fstype
char st_fstype[16]
Definition:
solaris.hh:98
gem5::Solaris::tgt_stat64::st_rdev
uint64_t st_rdev
device number
Definition:
solaris.hh:110
gem5::Solaris::tgt_stat::st_ctimeX
int64_t st_ctimeX
Definition:
solaris.hh:95
gem5::Solaris::dev_t
uint64_t dev_t
Definition:
solaris.hh:69
gem5::Solaris::tgt_stat64::st_dev
uint64_t st_dev
device
Definition:
solaris.hh:104
gem5::OperatingSystem
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
Definition:
operatingsystem.hh:47
gem5::Solaris::gid_t
int32_t gid_t
Definition:
solaris.hh:66
gem5::Solaris::rlim_t
uint64_t rlim_t
Definition:
solaris.hh:67
gem5::Solaris::tgt_stat64::st_fstype
char st_fstype[16]
Definition:
solaris.hh:118
gem5::Solaris
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
Definition:
solaris.hh:55
gem5::Solaris::_SYS_NMLN
static const int _SYS_NMLN
Length of strings in struct utsname (plus 1 for null char).
Definition:
solaris.hh:122
gem5::Solaris::ino_t
uint64_t ino_t
Definition:
solaris.hh:68
gem5::Solaris::mode_t
uint32_t mode_t
Definition:
solaris.hh:70
gem5::Solaris::tgt_stat::st_gid
int32_t st_gid
owner's group ID
Definition:
solaris.hh:89
operatingsystem.hh
gem5::Solaris::tgt_stat64::st_mtimeX
int64_t st_mtimeX
Definition:
solaris.hh:115
gem5::Solaris::tgt_stat::st_atimeX
int64_t st_atimeX
Definition:
solaris.hh:95
gem5::Solaris::uid_t
int32_t uid_t
Definition:
solaris.hh:65
gem5::Solaris::tgt_stat::st_mode
uint32_t st_mode
mode
Definition:
solaris.hh:86
gem5::Solaris::tgt_stat::st_size
int64_t st_size
file size in bytes
Definition:
solaris.hh:91
gem5::Solaris::tgt_stat64::st_gid
int32_t st_gid
owner's group ID
Definition:
solaris.hh:109
gem5::Solaris::tgt_stat64::st_mode
uint32_t st_mode
mode
Definition:
solaris.hh:106
gem5::Solaris::tgt_stat64::st_blksize
int32_t st_blksize
optimal I/O block size
Definition:
solaris.hh:116
gem5::Solaris::tgt_stat64::st_uid
int32_t st_uid
owner's user ID
Definition:
solaris.hh:108
gem5::Solaris::tgt_stat::st_mtimeX
int64_t st_mtimeX
Definition:
solaris.hh:95
types.hh
gem5::Solaris::tgt_stat64::st_blocks
int64_t st_blocks
number of blocks allocated
Definition:
solaris.hh:117
gem5::Solaris::nlink_t
uint32_t nlink_t
Definition:
solaris.hh:71
gem5::Solaris::tgt_stat::st_rdev
uint64_t st_rdev
device number
Definition:
solaris.hh:90
gem5::Solaris::tgt_stat::st_nlink
uint32_t st_nlink
link count
Definition:
solaris.hh:87
gem5::Solaris::tgt_timespec
Definition:
solaris.hh:74
gem5::Solaris::off_t
uint64_t off_t
Definition:
solaris.hh:63
gem5::Solaris::utsname::sysname
char sysname[_SYS_NMLN]
System name.
Definition:
solaris.hh:127
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition:
gpu_translation_state.hh:37
gem5::Solaris::utsname::release
char release[_SYS_NMLN]
OS release.
Definition:
solaris.hh:129
gem5::Solaris::tgt_stat64::st_ino
uint64_t st_ino
inode
Definition:
solaris.hh:105
gem5::Solaris::TGT_AT_REMOVEDIR
static const int TGT_AT_REMOVEDIR
Definition:
solaris.hh:136
gem5::Solaris::utsname::nodename
char nodename[_SYS_NMLN]
Node name.
Definition:
solaris.hh:128
gem5::Solaris::size_t
uint64_t size_t
Basic Solaris types.
Definition:
solaris.hh:62
Generated on Sun Jul 30 2023 01:56:50 for gem5 by
doxygen
1.8.17