]>
git.proxmox.com Git - mirror_spl-debian.git/blob - include/spl-thread.h
8 #include <linux/module.h>
10 #include <linux/spinlock.h>
11 #include "spl-types.h"
12 #include "spl-generic.h"
17 #define TP_MAGIC 0x53535353
19 #define TS_SLEEP TASK_INTERRUPTIBLE
20 #define TS_RUN TASK_RUNNING
21 #define TS_ZOMB EXIT_ZOMBIE
22 #define TS_STOPPED TASK_STOPPED
24 #define TS_FREE 0x00 /* No clean linux mapping */
25 #define TS_ONPROC 0x04 /* No clean linux mapping */
26 #define TS_WAIT 0x20 /* No clean linux mapping */
29 #define thread_create(stk, stksize, func, arg, len, pp, state, pri) \
30 __thread_create(stk, stksize, func, arg, len, pp, state, pri)
31 #define thread_exit() __thread_exit()
32 #define curthread get_current()
34 /* We just need a valid type to pass around, it's unused */
35 typedef struct proc_s
{
39 extern kthread_t
*__thread_create(caddr_t stk
, size_t stksize
,
40 void (*proc
)(void *), void *args
,
41 size_t len
, proc_t
*pp
, int state
,
43 extern void __thread_exit(void);
49 #endif /* _SPL_THREAD_H */