root/include/linux/wait.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_WAIT_H
   2 #define _LINUX_WAIT_H
   3 
   4 #define WNOHANG         0x00000001
   5 #define WUNTRACED       0x00000002
   6 
   7 #define __WCLONE        0x80000000
   8 
   9 struct wait_queue {
  10         struct task_struct * task;
  11         struct wait_queue * next;
  12 };
  13 
  14 struct semaphore {
  15         int count;
  16         struct wait_queue * wait;
  17 };
  18 
  19 #define MUTEX ((struct semaphore) { 1, NULL })
  20 
  21 struct select_table_entry {
  22         struct wait_queue wait;
  23         struct wait_queue ** wait_address;
  24 };
  25 
  26 typedef struct select_table_struct {
  27         int nr;
  28         struct select_table_entry * entry;
  29 } select_table;
  30 
  31 #define __MAX_SELECT_TABLE_ENTRIES (4096 / sizeof (struct select_table_entry))
  32 
  33 #endif

/* [previous][next][first][last][top][bottom][index][help] */