Lines Matching refs:pcb

44 struct kthread_info_t *to_kthread(struct process_control_block *pcb)  in to_kthread()  argument
46 WARN_ON(!(pcb->flags & PF_KTHREAD)); in to_kthread()
47 return pcb->worker_private; in to_kthread()
53 struct process_control_block *pcb = NULL; in __kthread_create_on_node() local
83 pcb = create->result; in __kthread_create_on_node()
95 struct kthread_info_t *kthread = to_kthread(pcb); in __kthread_create_on_node()
101 process_set_pcb_name(pcb, pcb_name); in __kthread_create_on_node()
106 return pcb; in __kthread_create_on_node()
141 struct process_control_block *pcb; in kthread_create_on_node() local
144 pcb = __kthread_create_on_node(thread_fn, data, node, name_fmt, args); in kthread_create_on_node()
146 return pcb; in kthread_create_on_node()
216 struct process_control_block *pcb = current_pcb; in kthreadd() local
274 int kthread_stop(struct process_control_block *pcb) in kthread_stop() argument
277 struct kthread_info_t *target = to_kthread(pcb); in kthread_stop()
279 process_wakeup(pcb); in kthread_stop()
287 process_exit_mm(pcb); in kthread_stop()
288 process_release_pcb(pcb); in kthread_stop()
298 bool kthread_set_worker_private(struct process_control_block *pcb) in kthread_set_worker_private() argument
300 if (WARN_ON_ONCE(to_kthread(pcb))) in kthread_set_worker_private()
306 pcb->worker_private = kt; in kthread_set_worker_private()
331 void free_kthread_struct(struct process_control_block *pcb) in free_kthread_struct() argument
333 struct kthread_info_t *kthread = to_kthread(pcb); in free_kthread_struct()
338 pcb->worker_private = NULL; in free_kthread_struct()