Lines Matching refs:current
75 current->thread.request.u.thread.proc = fn; in kernel_thread()
76 current->thread.request.u.thread.arg = arg; in kernel_thread()
78 ¤t->thread.regs, 0, NULL, NULL); in kernel_thread()
99 current->thread.saved_task = NULL; in _switch_to()
104 arch_switch_to(current); in _switch_to()
106 if (current->thread.saved_task) in _switch_to()
107 show_regs(&(current->thread.regs)); in _switch_to()
108 to = current->thread.saved_task; in _switch_to()
109 from = current; in _switch_to()
110 } while (current->thread.saved_task); in _switch_to()
112 return current->thread.prev_sched; in _switch_to()
120 if (test_tsk_thread_flag(current, TIF_SIGPENDING)) in interrupt_end()
130 return current; in get_current()
142 if (current->thread.prev_sched != NULL) in new_thread_handler()
143 schedule_tail(current->thread.prev_sched); in new_thread_handler()
144 current->thread.prev_sched = NULL; in new_thread_handler()
146 fn = current->thread.request.u.thread.proc; in new_thread_handler()
147 arg = current->thread.request.u.thread.arg; in new_thread_handler()
153 n = run_kernel_thread(fn, arg, ¤t->thread.exec_buf); in new_thread_handler()
157 userspace(¤t->thread.regs.regs); in new_thread_handler()
167 schedule_tail(current->thread.prev_sched); in fork_handler()
174 arch_switch_to(current); in fork_handler()
176 current->thread.prev_sched = NULL; in fork_handler()
181 userspace(¤t->thread.regs.regs); in fork_handler()
193 if (current->thread.forking) { in copy_thread()
202 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
206 p->thread.request.u.thread = current->thread.request.u.thread; in copy_thread()
212 if (current->thread.forking) { in copy_thread()
396 struct task_struct *task = t ? t : current; in singlestepping()
417 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()
428 if ((p == NULL) || (p == current) || (p->state == TASK_RUNNING)) in get_wchan()