Lines Matching refs:kthread
9 #include <linux/kthread.h>
27 /* Information passed to kthread() from kthreadd. */
38 struct kthread {
45 container_of((tsk)->vfork_done, struct kthread, exited)
48 * kthread_should_stop - should this kthread return now?
50 * When someone calls kthread_stop() on your kthread, it will be woken
61 * kthread_data - return data value specified on kthread creation
62 * @task: kthread task in question
64 * Return the data value specified when kthread @task was created.
73 static int kthread(void *_create)
75 /* Copy data: it's on kthread's stack */
79 struct kthread self;
106 pid = kernel_thread(kthread, create, CLONE_FS | CLONE_FILES | SIGCHLD);
114 * kthread_create - create a kthread.
170 * kthread_bind - bind a just-created kthread to a cpu.
180 /* Must have done schedule() in kthread() before we set_task_cpu */
209 struct kthread *kthread;
215 kthread = to_kthread(k);
218 kthread->should_stop = 1;
220 wait_for_completion(&kthread->exited);
269 * kthread_worker_fn - kthread function to process kthread_worker
274 * kthread_worker. The started kthread will process work_list until
275 * the it is stopped with kthread_stop(). A kthread can also call
279 * as there's only one kthread attached to it at any given time. A
280 * kthread_worker without an attached kthread simply collects queued