Home
last modified time | relevance | path

Searched refs:thrinfo (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/staging/unisys/uislib/
Duisthread.c38 uisthread_start(struct uisthread_info *thrinfo, in uisthread_start() argument
42 init_completion(&thrinfo->has_stopped); in uisthread_start()
43 thrinfo->task = kthread_run(threadfn, thrcontext, name); in uisthread_start()
44 if (IS_ERR(thrinfo->task)) { in uisthread_start()
45 thrinfo->id = 0; in uisthread_start()
48 thrinfo->id = thrinfo->task->pid; in uisthread_start()
54 uisthread_stop(struct uisthread_info *thrinfo) in uisthread_stop() argument
58 if (thrinfo->id == 0) in uisthread_stop()
61 kthread_stop(thrinfo->task); in uisthread_stop()
63 if (wait_for_completion_timeout(&thrinfo->has_stopped, 60 * HZ)) in uisthread_stop()
[all …]
/linux-4.1.27/drivers/staging/unisys/include/
Duisthread.h35 struct uisthread_info *thrinfo,
40 void uisthread_stop(struct uisthread_info *thrinfo);