Lines Matching refs:create
345 struct kthread_create_info *create = _create; in kthread() local
346 int (*threadfn)(void *data) = create->threadfn; in kthread()
347 void *data = create->data; in kthread()
355 done = xchg(&create->done, NULL); in kthread()
357 kfree(create->full_name); in kthread()
358 kfree(create); in kthread()
362 self->full_name = create->full_name; in kthread()
375 create->result = current; in kthread()
404 static void create_kthread(struct kthread_create_info *create) in create_kthread() argument
409 current->pref_node_fork = create->node; in create_kthread()
412 pid = kernel_thread(kthread, create, create->full_name, in create_kthread()
416 struct completion *done = xchg(&create->done, NULL); in create_kthread()
418 kfree(create->full_name); in create_kthread()
420 kfree(create); in create_kthread()
423 create->result = ERR_PTR(pid); in create_kthread()
436 struct kthread_create_info *create = kmalloc(sizeof(*create), in __kthread_create_on_node() local
439 if (!create) in __kthread_create_on_node()
441 create->threadfn = threadfn; in __kthread_create_on_node()
442 create->data = data; in __kthread_create_on_node()
443 create->node = node; in __kthread_create_on_node()
444 create->done = &done; in __kthread_create_on_node()
445 create->full_name = kvasprintf(GFP_KERNEL, namefmt, args); in __kthread_create_on_node()
446 if (!create->full_name) { in __kthread_create_on_node()
452 list_add_tail(&create->list, &kthread_create_list); in __kthread_create_on_node()
467 if (xchg(&create->done, NULL)) in __kthread_create_on_node()
475 task = create->result; in __kthread_create_on_node()
477 kfree(create); in __kthread_create_on_node()
760 struct kthread_create_info *create; in kthreadd() local
762 create = list_entry(kthread_create_list.next, in kthreadd()
764 list_del_init(&create->list); in kthreadd()
767 create_kthread(create); in kthreadd()