Lines Matching refs:to_kthread
71 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() function
120 kthread = to_kthread(k); in free_kthread_struct()
136 return test_bit(KTHREAD_SHOULD_STOP, &to_kthread(current)->flags); in kthread_should_stop()
142 return test_bit(KTHREAD_SHOULD_PARK, &to_kthread(k)->flags); in __kthread_should_park()
213 return to_kthread(task)->data; in kthread_data()
267 __kthread_parkme(to_kthread(current)); in kthread_parkme()
283 self = to_kthread(current); in kthread()
523 to_kthread(p)->cpu = cpu; in kthread_create_on_cpu()
529 struct kthread *kthread = to_kthread(k); in kthread_set_per_cpu()
563 struct kthread *kthread = to_kthread(k); in kthread_unpark()
594 struct kthread *kthread = to_kthread(k); in kthread_park()
644 kthread = to_kthread(k); in kthread_stop()
1384 to_kthread(tsk)->oldfs = force_uaccess_begin(); in kthread_use_mm()
1399 force_uaccess_end(to_kthread(tsk)->oldfs); in kthread_unuse_mm()
1438 kthread = to_kthread(current); in kthread_associate_blkcg()
1463 kthread = to_kthread(current); in kthread_blkcg()