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
82 pcb = create->result; in __kthread_create_on_node()
94 struct kthread_info_t *kthread = to_kthread(pcb); in __kthread_create_on_node()
100 process_set_pcb_name(pcb, pcb_name); in __kthread_create_on_node()
105 return pcb; in __kthread_create_on_node()
140 struct process_control_block *pcb; in kthread_create_on_node() local
143 pcb = __kthread_create_on_node(thread_fn, data, node, name_fmt, args); in kthread_create_on_node()
145 return pcb; in kthread_create_on_node()
212 struct process_control_block *pcb = current_pcb; in kthreadd() local
263 int kthread_stop(struct process_control_block *pcb) in kthread_stop() argument
266 struct kthread_info_t *target = to_kthread(pcb); in kthread_stop()
268 process_wakeup(pcb); in kthread_stop()
276 process_exit_mm(pcb); in kthread_stop()
277 process_release_pcb(pcb); in kthread_stop()
287 bool kthread_set_worker_private(struct process_control_block *pcb) in kthread_set_worker_private() argument
289 if (WARN_ON_ONCE(to_kthread(pcb))) in kthread_set_worker_private()
295 pcb->worker_private = kt; in kthread_set_worker_private()
320 void free_kthread_struct(struct process_control_block *pcb) in free_kthread_struct() argument
322 struct kthread_info_t *kthread = to_kthread(pcb); in free_kthread_struct()
327 pcb->worker_private = NULL; in free_kthread_struct()