FreeBSD/Linux Kernel Cross Reference
sys/sys/xwait.h
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
Cache object: d52afb129ab7311b6fc3500841d5541b
|