Lines Matching refs:current

93 	spin_lock_irq(&current->sigmask_lock);  in _sys_rt_sigsuspend()
94 saveset = current->blocked; in _sys_rt_sigsuspend()
95 current->blocked = newset; in _sys_rt_sigsuspend()
96 recalc_sigpending(current); in _sys_rt_sigsuspend()
97 spin_unlock_irq(&current->sigmask_lock); in _sys_rt_sigsuspend()
102 current->state = TASK_INTERRUPTIBLE; in _sys_rt_sigsuspend()
142 err |= __get_user(current->used_math, &sc->sc_used_math); in restore_sigcontext()
144 if (current->used_math) { in restore_sigcontext()
176 spin_lock_irq(&current->sigmask_lock); in sys_rt_sigreturn()
177 current->blocked = set; in sys_rt_sigreturn()
178 recalc_sigpending(current); in sys_rt_sigreturn()
179 spin_unlock_irq(&current->sigmask_lock); in sys_rt_sigreturn()
201 force_sig(SIGSEGV, current); in sys_rt_sigreturn()
230 err |= __put_user(current->used_math, &sc->sc_used_math); in setup_sigcontext()
232 if (!current->used_math) in setup_sigcontext()
241 restore_fp(current); in setup_sigcontext()
269 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe()
300 err |= __put_user((void *)current->sas_ss_sp, in setup_rt_frame()
304 err |= __put_user(current->sas_ss_size, in setup_rt_frame()
331 current->comm, current->pid, in setup_rt_frame()
339 force_sig(SIGSEGV, current); in setup_rt_frame()
349 if ((current->thread.mflags & MF_ABI_MASK) == MF_N32) in handle_signal()
358 spin_lock_irq(&current->sigmask_lock); in handle_signal()
359 sigorsets(&current->blocked,&current->blocked,&ka->sa.sa_mask); in handle_signal()
360 sigaddset(&current->blocked,sig); in handle_signal()
361 recalc_sigpending(current); in handle_signal()
362 spin_unlock_irq(&current->sigmask_lock); in handle_signal()
395 if ((current->thread.mflags & MF_ABI_MASK) == MF_O32) { in do_signal()
401 oldset = &current->blocked; in do_signal()
406 spin_lock_irq(&current->sigmask_lock); in do_signal()
407 signr = dequeue_signal(&current->blocked, &info); in do_signal()
408 spin_unlock_irq(&current->sigmask_lock); in do_signal()
413 if ((current->ptrace & PT_PTRACED) && signr != SIGKILL) { in do_signal()
415 current->exit_code = signr; in do_signal()
416 current->state = TASK_STOPPED; in do_signal()
417 notify_parent(current, SIGCHLD); in do_signal()
421 if (!(signr = current->exit_code)) in do_signal()
423 current->exit_code = 0; in do_signal()
434 info.si_pid = current->p_pptr->pid; in do_signal()
435 info.si_uid = current->p_pptr->uid; in do_signal()
439 if (sigismember(&current->blocked, signr)) { in do_signal()
440 send_sig_info(signr, &info, current); in do_signal()
445 ka = &current->sig->action[signr-1]; in do_signal()
459 if (current->pid == 1) in do_signal()
467 if (is_orphaned_pgrp(current->pgrp)) in do_signal()
472 current->state = TASK_STOPPED; in do_signal()
473 current->exit_code = signr; in do_signal()
474 if (!(current->p_pptr->sig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP)) in do_signal()
475 notify_parent(current, SIGCHLD); in do_signal()