patch-2.2.18 linux/include/linux/wait.h
Next file: linux/include/linux/xpds-ioctl.h
Previous file: linux/include/linux/vmalloc.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Sep 3 00:06:13 2000
- Orig file:
v2.2.17/include/linux/wait.h
- Orig date:
Fri Apr 21 23:10:16 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/linux/wait.h linux/include/linux/wait.h
@@ -15,7 +15,14 @@
struct wait_queue * next;
};
+typedef struct wait_queue wait_queue_t;
+typedef struct wait_queue *wait_queue_head_t;
+
#define WAIT_QUEUE_HEAD(x) ((struct wait_queue *)((x)-1))
+#define DECLARE_WAITQUEUE(wait, current) struct wait_queue wait = { current, NULL }
+#define DECLARE_WAIT_QUEUE_HEAD(wait) wait_queue_head_t wait
+#define init_waitqueue_head(x) *(x)=NULL
+#define init_waitqueue_entry(q,p) ((q)->task)=(p)
static inline void init_waitqueue(struct wait_queue **q)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)