Lines Matching refs:current
89 arch_switch_to(current); in __switch_to()
91 return current->thread.prev_sched; in __switch_to()
96 struct pt_regs *regs = ¤t->thread.regs; in interrupt_end()
112 return task_pid_nr(current); in get_current_pid()
124 if (current->thread.prev_sched != NULL) in new_thread_handler()
125 schedule_tail(current->thread.prev_sched); in new_thread_handler()
126 current->thread.prev_sched = NULL; in new_thread_handler()
128 fn = current->thread.request.u.thread.proc; in new_thread_handler()
129 arg = current->thread.request.u.thread.arg; in new_thread_handler()
135 userspace(¤t->thread.regs.regs); in new_thread_handler()
143 schedule_tail(current->thread.prev_sched); in fork_handler()
150 arch_switch_to(current); in fork_handler()
152 current->thread.prev_sched = NULL; in fork_handler()
154 userspace(¤t->thread.regs.regs); in fork_handler()
161 int kthread = current->flags & PF_KTHREAD; in copy_thread()
175 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
339 struct task_struct *task = t ? t : current; in singlestepping()
360 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()
371 if ((p == NULL) || (p == current) || (p->state == TASK_RUNNING)) in get_wchan()