]>
git.proxmox.com Git - mirror_spl-debian.git/blob - include/linux-thread.h
1 #ifndef _SYS_LINUX_THREAD_H
2 #define _SYS_LINUX_THREAD_H
9 #include <linux/spinlock.h>
10 #include <sys/linux-types.h>
11 #include <sys/linux-generic.h>
16 #define TP_MAGIC 0x53535353
18 #define TS_SLEEP TASK_INTERRUPTIBLE
19 #define TS_RUN TASK_RUNNING
20 #define TS_ZOMB EXIT_ZOMBIE
21 #define TS_STOPPED TASK_STOPPED
23 #define TS_FREE 0x00 /* No clean linux mapping */
24 #define TS_ONPROC 0x04 /* No clean linux mapping */
25 #define TS_WAIT 0x20 /* No clean linux mapping */
28 #define thread_create(stk, stksize, func, arg, len, pp, state, pri) \
29 __thread_create(stk, stksize, func, arg, len, pp, state, pri)
30 #define thread_exit() __thread_exit()
31 #define curthread get_current()
33 /* We just need a valid type to pass around, it's unused */
34 typedef struct proc_s
{
38 kthread_t
* __thread_create(caddr_t stk
, size_t stksize
,
39 void (*proc
)(void *), void *args
,
40 size_t len
, proc_t
*pp
, int state
,
47 #endif /* _SYS_LINUX_THREAD_H */