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()
714 char *f, struct task_struct **tp) in _torture_create_kthread() argument
719 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
720 if (IS_ERR(*tp)) { in _torture_create_kthread()
721 ret = PTR_ERR(*tp); in _torture_create_kthread()
723 *tp = NULL; in _torture_create_kthread()
725 torture_shuffle_task_register(*tp); in _torture_create_kthread()
733 void _torture_stop_kthread(char *m, struct task_struct **tp) in _torture_stop_kthread() argument
735 if (*tp == NULL) in _torture_stop_kthread()
738 kthread_stop(*tp); in _torture_stop_kthread()
739 *tp = NULL; in _torture_stop_kthread()