Lines Matching refs:create

344 	struct kthread_create_info *create = _create;  in kthread()  local
345 int (*threadfn)(void *data) = create->threadfn; in kthread()
346 void *data = create->data; in kthread()
354 done = xchg(&create->done, NULL); in kthread()
356 kfree(create->full_name); in kthread()
357 kfree(create); in kthread()
361 self->full_name = create->full_name; in kthread()
374 create->result = current; in kthread()
403 static void create_kthread(struct kthread_create_info *create) in create_kthread() argument
408 current->pref_node_fork = create->node; in create_kthread()
411 pid = kernel_thread(kthread, create, create->full_name, in create_kthread()
415 struct completion *done = xchg(&create->done, NULL); in create_kthread()
417 kfree(create->full_name); in create_kthread()
419 kfree(create); in create_kthread()
422 create->result = ERR_PTR(pid); in create_kthread()
435 struct kthread_create_info *create = kmalloc(sizeof(*create), in __kthread_create_on_node() local
438 if (!create) in __kthread_create_on_node()
440 create->threadfn = threadfn; in __kthread_create_on_node()
441 create->data = data; in __kthread_create_on_node()
442 create->node = node; in __kthread_create_on_node()
443 create->done = &done; in __kthread_create_on_node()
444 create->full_name = kvasprintf(GFP_KERNEL, namefmt, args); in __kthread_create_on_node()
445 if (!create->full_name) { in __kthread_create_on_node()
451 list_add_tail(&create->list, &kthread_create_list); in __kthread_create_on_node()
466 if (xchg(&create->done, NULL)) in __kthread_create_on_node()
474 task = create->result; in __kthread_create_on_node()
476 kfree(create); in __kthread_create_on_node()
739 struct kthread_create_info *create; in kthreadd() local
741 create = list_entry(kthread_create_list.next, in kthreadd()
743 list_del_init(&create->list); in kthreadd()
746 create_kthread(create); in kthreadd()