repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel - SWAP CACHE part 22/many - Fix counter overflow introduced in part 21
[dragonfly.git]
/
sys
/
sys
/
xwait.h
blob
b392a0fd975823401bd54fe555ac1a5da582fcd9
1
/*
2
* SYS/XWAIT.H
3
*
4
* $DragonFly: src/sys/sys/xwait.h,v 1.2 2006/05/20 02:42:13 dillon Exp $
5
*/
6
7
#ifndef _SYS_XWAIT_H_
8
#define _SYS_XWAIT_H_
9
10
#ifndef _SYS_QUEUE_H_
11
#include <sys/queue.h>
12
#endif
13
14
struct
proc
;
15
16
/*
17
* XWAIT structure for xsleep()/xwakeup()
18
*/
19
20
struct
xwait
{
21
int
gen
;
22
TAILQ_HEAD
(,
proc
)
waitq
;
23
};
24
25
static
__inline
void
26
xupdate_gen
(
struct
xwait
*
w
)
27
{
28
++
w
->
gen
;
29
}
30
31
#endif
32