• Home
  • Raw
  • Download

Lines Matching refs:task

163 void *kthread_data(struct task_struct *task)  in kthread_data()  argument
165 return to_kthread(task)->data; in kthread_data()
177 void *kthread_probe_data(struct task_struct *task) in kthread_probe_data() argument
179 struct kthread *kthread = to_kthread(task); in kthread_probe_data()
299 struct task_struct *task; in __kthread_create_on_node() local
334 task = create->result; in __kthread_create_on_node()
335 if (!IS_ERR(task)) { in __kthread_create_on_node()
344 set_task_comm(task, name); in __kthread_create_on_node()
349 sched_setscheduler_nocheck(task, SCHED_NORMAL, &param); in __kthread_create_on_node()
350 set_cpus_allowed_ptr(task, cpu_all_mask); in __kthread_create_on_node()
353 return task; in __kthread_create_on_node()
384 struct task_struct *task; in kthread_create_on_node() local
388 task = __kthread_create_on_node(threadfn, data, node, namefmt, args); in kthread_create_on_node()
391 return task; in kthread_create_on_node()
642 WARN_ON(worker->task && worker->task != current); in kthread_worker_fn()
643 worker->task = current; in kthread_worker_fn()
654 worker->task = NULL; in kthread_worker_fn()
686 struct task_struct *task; in __kthread_create_worker() local
698 task = __kthread_create_on_node(kthread_worker_fn, worker, in __kthread_create_worker()
700 if (IS_ERR(task)) in __kthread_create_worker()
704 kthread_bind(task, cpu); in __kthread_create_worker()
707 worker->task = task; in __kthread_create_worker()
708 wake_up_process(task); in __kthread_create_worker()
713 return ERR_CAST(task); in __kthread_create_worker()
802 if (!worker->current_work && likely(worker->task)) in kthread_insert_work()
803 wake_up_process(worker->task); in kthread_insert_work()
1180 struct task_struct *task; in kthread_destroy_worker() local
1182 task = worker->task; in kthread_destroy_worker()
1183 if (WARN_ON(!task)) in kthread_destroy_worker()
1187 kthread_stop(task); in kthread_destroy_worker()