1 /* Public domain. */ 2 3 #ifndef _LINUX_KTHREAD_H 4 #define _LINUX_KTHREAD_H 5 6 /* both for printf */ 7 #include <sys/types.h> 8 #include <sys/systm.h> 9 10 struct proc *kthread_run(int (*)(void *), void *, const char *); 11 void kthread_park(struct proc *); 12 void kthread_unpark(struct proc *); 13 int kthread_should_park(void); 14 void kthread_parkme(void); 15 void kthread_stop(struct proc *); 16 int kthread_should_stop(void); 17 18 #endif 19