25 #ifndef __MOTR_LIB_LINUX_KERNEL_THREAD_H__ 26 #define __MOTR_LIB_LINUX_KERNEL_THREAD_H__ 28 #include <linux/kthread.h> 29 #include <linux/hardirq.h> 60 #define M0_THREAD_ENTER \ 61 struct m0_thread __th \ 62 __attribute__((cleanup(m0_thread__cleanup))) = { 0, }; \ 63 m0_thread_enter(&__th, true) M0_INTERNAL void m0_thread_enter(struct m0_thread *thread, bool full)
struct task_struct * h_tsk
M0_INTERNAL struct m0_thread_tls * m0_thread_tls_pop(void)
M0_INTERNAL void m0_thread_leave(void)
M0_INTERNAL void m0_thread__cleanup(struct m0_thread *bye)
static __thread struct m0_thread_tls * tls
M0_INTERNAL void m0_thread_tls_back(struct m0_thread_tls *tls)