XINU
Main Page
Related Pages
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
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
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
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
+
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
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
y
+
Typedefs
b
d
e
f
g
i
m
p
q
s
u
v
y
Enumerations
Enumerator
+
Macros
_
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
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
system
yield.c
Go to the documentation of this file.
1
5
#include <
xinu.h
>
6
12
syscall
yield
(
void
)
13
{
14
intmask
mask;
/* Saved interrupt mask */
15
16
mask =
disable
();
17
resched
();
18
restore
(mask);
19
return
OK
;
20
}
restore
void restore(intmask)
xinu.h
全てのシステムヘッダファイルをインクルードする。
OK
#define OK
処理が成功した場合
Definition:
kernel.h:77
intmask
uint32 intmask
保存された割り込みマスク
Definition:
kernel.h:38
resched
void resched(void)
最優先の適切なプロセスにCPU実行権を渡す。
Definition:
resched.c:22
syscall
int32 syscall
システムコール関数 返り値の型
Definition:
kernel.h:47
yield
syscall yield(void)
CPU実行権を自発的に放棄する(タイムスライスを終了する)。
Definition:
yield.c:12
disable
intmask disable(void)
割り込み禁止(intr.Sに定義がある)
Generated by
1.8.13