Lines Matching refs:k
43 struct task_struct *k; member
62 return (kthread_stop_info.k == current); in kthread_should_stop()
176 void kthread_bind(struct task_struct *k, unsigned int cpu) in kthread_bind() argument
179 if (!wait_task_inactive(k, TASK_UNINTERRUPTIBLE)) { in kthread_bind()
183 set_task_cpu(k, cpu); in kthread_bind()
184 k->cpus_allowed = cpumask_of_cpu(cpu); in kthread_bind()
185 k->rt.nr_cpus_allowed = 1; in kthread_bind()
186 k->flags |= PF_THREAD_BOUND; in kthread_bind()
203 int kthread_stop(struct task_struct *k) in kthread_stop() argument
210 get_task_struct(k); in kthread_stop()
212 trace_sched_kthread_stop(k); in kthread_stop()
219 kthread_stop_info.k = k; in kthread_stop()
220 wake_up_process(k); in kthread_stop()
221 put_task_struct(k); in kthread_stop()
225 kthread_stop_info.k = NULL; in kthread_stop()