Lines Matching refs:current
86 arch_switch_to(current); in __switch_to()
88 return current->thread.prev_sched; in __switch_to()
98 tracehook_notify_resume(¤t->thread.regs); in interrupt_end()
107 return task_pid_nr(current); in get_current_pid()
119 if (current->thread.prev_sched != NULL) in new_thread_handler()
120 schedule_tail(current->thread.prev_sched); in new_thread_handler()
121 current->thread.prev_sched = NULL; in new_thread_handler()
123 fn = current->thread.request.u.thread.proc; in new_thread_handler()
124 arg = current->thread.request.u.thread.arg; in new_thread_handler()
130 userspace(¤t->thread.regs.regs); in new_thread_handler()
138 schedule_tail(current->thread.prev_sched); in fork_handler()
145 arch_switch_to(current); in fork_handler()
147 current->thread.prev_sched = NULL; in fork_handler()
149 userspace(¤t->thread.regs.regs); in fork_handler()
156 int kthread = current->flags & PF_KTHREAD; in copy_thread()
170 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
337 struct task_struct *task = t ? t : current; in singlestepping()
358 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()
369 if ((p == NULL) || (p == current) || (p->state == TASK_RUNNING)) in get_wchan()