netlib.narod.ru | < Назад | Оглавление | Далее > |
18650 #ifndef _LINUX_WAIT_H
18651 #define _LINUX_WAIT_H
18652
18653 #define WNOHANG 0x00000001
18654 #define WUNTRACED 0x00000002
18655
18656 #define __WCLONE 0x80000000
18657
18658 #ifdef __KERNEL__
18659
18660 #include <asm/page.h>
18661
Комментарий
18662 struct wait_queue {
18663 struct task_struct * task;
18664 struct wait_queue * next;
18665 };
18666
18667 #define WAIT_QUEUE_HEAD(x) ((struct wait_queue *)((x)-1))
18668
18669 static inline void init_waitqueue(struct wait_queue **q)
18670 {
18671 *q = WAIT_QUEUE_HEAD(q);
18672 }
18673
18674 static inline int waitqueue_active(struct wait_queue **q)
18675 {
18676 struct wait_queue *head = *q;
18677 return head && head != WAIT_QUEUE_HEAD(q);
18678 }
18679
18680 #endif /* __KERNEL__ */
18681
18682 #endif
netlib.narod.ru | < Назад | Оглавление | Далее > |