Lines Matching refs:create
54 struct kthread_create_info_t *create = kzalloc(sizeof(struct kthread_create_info_t), 0); in __kthread_create_on_node() local
56 if (create == NULL) in __kthread_create_on_node()
60 create->thread_fn = thread_fn; in __kthread_create_on_node()
61 create->data = data; in __kthread_create_on_node()
62 create->node = node; in __kthread_create_on_node()
63 create->result = NULL; in __kthread_create_on_node()
64 list_init(&create->list); in __kthread_create_on_node()
67 list_append(&kthread_create_list, &create->list); in __kthread_create_on_node()
80 while (create->result == NULL) in __kthread_create_on_node()
83 pcb = create->result; in __kthread_create_on_node()
84 if (!IS_ERR(create->result)) in __kthread_create_on_node()
105 kfree(create); in __kthread_create_on_node()
156 struct kthread_create_info_t *create = _create; in kthread() local
158 int (*thread_fn)(void *data) = create->thread_fn; in kthread()
159 void *data = create->data; in kthread()
175 create->result = current_pcb; in kthread()
192 static void __create_kthread(struct kthread_create_info_t *create) in __create_kthread() argument
194 pid_t pid = kernel_thread(kthread, create, CLONE_FS | CLONE_SIGNAL); in __create_kthread()
200 create->result = (struct process_control_block *)pid; in __create_kthread()
237 struct kthread_create_info_t *create = in kthreadd() local
239 list_del_init(&create->list); in kthreadd()
242 __create_kthread(create); in kthreadd()