Lines Matching refs:tp
283 void torture_shuffle_task_register(struct task_struct *tp) in torture_shuffle_task_register() argument
287 if (WARN_ON_ONCE(tp == NULL)) in torture_shuffle_task_register()
292 stp->st_t = tp; in torture_shuffle_task_register()
715 char *f, struct task_struct **tp) in _torture_create_kthread() argument
720 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
721 if (IS_ERR(*tp)) { in _torture_create_kthread()
722 ret = PTR_ERR(*tp); in _torture_create_kthread()
724 *tp = NULL; in _torture_create_kthread()
726 torture_shuffle_task_register(*tp); in _torture_create_kthread()
734 void _torture_stop_kthread(char *m, struct task_struct **tp) in _torture_stop_kthread() argument
736 if (*tp == NULL) in _torture_stop_kthread()
739 kthread_stop(*tp); in _torture_stop_kthread()
740 *tp = NULL; in _torture_stop_kthread()