Lines Matching refs:current

18 	return (sigismember(&current->blocked, sig) ||  in is_ignored()
19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored()
39 if (current->signal->tty != tty) in __tty_check_change()
43 pgrp = task_pgrp(current); in __tty_check_change()
109 tty->ctrl.pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
110 tty->ctrl.session = get_pid(task_session(current)); in __proc_set_tty()
112 if (current->signal->tty) { in __proc_set_tty()
114 current->signal->tty->name); in __proc_set_tty()
115 tty_kref_put(current->signal->tty); in __proc_set_tty()
117 put_pid(current->signal->tty_old_pgrp); in __proc_set_tty()
118 current->signal->tty = tty_kref_get(tty); in __proc_set_tty()
119 current->signal->tty_old_pgrp = NULL; in __proc_set_tty()
124 spin_lock_irq(&current->sighand->siglock); in proc_set_tty()
126 spin_unlock_irq(&current->sighand->siglock); in proc_set_tty()
135 spin_lock_irq(&current->sighand->siglock); in tty_open_proc_set_tty()
136 if (current->signal->leader && in tty_open_proc_set_tty()
137 !current->signal->tty && in tty_open_proc_set_tty()
156 spin_unlock_irq(&current->sighand->siglock); in tty_open_proc_set_tty()
165 spin_lock_irqsave(&current->sighand->siglock, flags); in get_current_tty()
166 tty = tty_kref_get(current->signal->tty); in get_current_tty()
167 spin_unlock_irqrestore(&current->sighand->siglock, flags); in get_current_tty()
269 if (!current->signal->leader) in disassociate_ctty()
291 spin_lock_irq(&current->sighand->siglock); in disassociate_ctty()
292 old_pgrp = current->signal->tty_old_pgrp; in disassociate_ctty()
293 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
294 spin_unlock_irq(&current->sighand->siglock); in disassociate_ctty()
303 spin_lock_irq(&current->sighand->siglock); in disassociate_ctty()
304 put_pid(current->signal->tty_old_pgrp); in disassociate_ctty()
305 current->signal->tty_old_pgrp = NULL; in disassociate_ctty()
306 tty = tty_kref_get(current->signal->tty); in disassociate_ctty()
307 spin_unlock_irq(&current->sighand->siglock); in disassociate_ctty()
325 session_clear_tty(task_session(current)); in disassociate_ctty()
340 struct task_struct *tsk = current; in no_tty()
367 if (current->signal->leader && in tiocsctty()
368 task_session(current) == tty->ctrl.session) in tiocsctty()
375 if (!current->signal->leader || current->signal->tty) { in tiocsctty()
469 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp()
505 if (!current->signal->tty || in tiocspgrp()
506 (current->signal->tty != real_tty) || in tiocspgrp()
507 (real_tty->ctrl.session != task_session(current))) { in tiocspgrp()
517 if (session_of_pgrp(pgrp) != task_session(current)) in tiocspgrp()
547 if (tty == real_tty && current->signal->tty != real_tty) in tiocgsid()
574 if (current->signal->tty != tty) in tty_jobctrl_ioctl()