Lines Matching full:create

217 	struct kthread_create_info *create = _create;  in kthread()  local
218 int (*threadfn)(void *data) = create->threadfn; in kthread()
219 void *data = create->data; in kthread()
228 done = xchg(&create->done, NULL); in kthread()
230 kfree(create); in kthread()
235 create->result = ERR_PTR(-ENOMEM); in kthread()
247 create->result = current; in kthread()
270 static void create_kthread(struct kthread_create_info *create) in create_kthread() argument
275 current->pref_node_fork = create->node; in create_kthread()
278 pid = kernel_thread(kthread, create, CLONE_FS | CLONE_FILES | SIGCHLD); in create_kthread()
281 struct completion *done = xchg(&create->done, NULL); in create_kthread()
284 kfree(create); in create_kthread()
287 create->result = ERR_PTR(pid); in create_kthread()
300 struct kthread_create_info *create = kmalloc(sizeof(*create), in __kthread_create_on_node() local
303 if (!create) in __kthread_create_on_node()
305 create->threadfn = threadfn; in __kthread_create_on_node()
306 create->data = data; in __kthread_create_on_node()
307 create->node = node; in __kthread_create_on_node()
308 create->done = &done; in __kthread_create_on_node()
311 list_add_tail(&create->list, &kthread_create_list); in __kthread_create_on_node()
326 if (xchg(&create->done, NULL)) in __kthread_create_on_node()
334 task = create->result; in __kthread_create_on_node()
352 kfree(create); in __kthread_create_on_node()
357 * kthread_create_on_node - create a kthread.
437 * kthread_create_on_cpu - Create a cpu bound kthread
589 struct kthread_create_info *create; in kthreadd() local
591 create = list_entry(kthread_create_list.next, in kthreadd()
593 list_del_init(&create->list); in kthreadd()
596 create_kthread(create); in kthreadd()
717 * kthread_create_worker - create a kthread worker
740 * kthread_create_worker_on_cpu - create a kthread worker and bind it