| /linux/drivers/tty/ |
| H A D | tty_jobctrl.c | 36 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local 43 pgrp = task_pgrp(current); in __tty_check_change() 46 tty_pgrp = tty->ctrl.pgrp; in __tty_check_change() 49 if (tty_pgrp && pgrp != tty_pgrp) { in __tty_check_change() 56 kill_pgrp(pgrp, sig, 1); in __tty_check_change() 108 put_pid(tty->ctrl.pgrp); in __proc_set_tty() 109 tty->ctrl.pgrp = get_pid(task_pgrp(current)); in __proc_set_tty() 222 tty_pgrp = get_pid(tty->ctrl.pgrp); in tty_signal_session_leader() 223 if (tty->ctrl.pgrp) in tty_signal_session_leader() 225 get_pid(tty->ctrl.pgrp); in tty_signal_session_leader() [all …]
|
| H A D | pty.c | 190 struct pid *pgrp; in pty_signal() local 196 pgrp = tty_get_pgrp(tty->link); in pty_signal() 197 if (pgrp) in pty_signal() 198 kill_pgrp(pgrp, sig, 1); in pty_signal() 199 put_pid(pgrp); in pty_signal() 284 struct pid *pgrp, *rpgrp; in pty_resize() local 293 pgrp = tty_get_pgrp(tty); in pty_resize() 296 if (pgrp) in pty_resize() 297 kill_pgrp(pgrp, SIGWINCH, 1); in pty_resize() 298 if (rpgrp != pgrp && rpgrp) in pty_resize() [all …]
|
| H A D | tty_io.c | 627 put_pid(tty->ctrl.pgrp); in __tty_hangup() 629 tty->ctrl.pgrp = NULL; in __tty_hangup() 1531 put_pid(tty->ctrl.pgrp); in release_one_tty() 2228 if (tty->ctrl.pgrp) { in __tty_fasync() 2229 pid = tty->ctrl.pgrp; in __tty_fasync() 2326 struct pid *pgrp; in tty_do_resize() local 2334 pgrp = tty_get_pgrp(tty); in tty_do_resize() 2335 if (pgrp) in tty_do_resize() 2336 kill_pgrp(pgrp, SIGWINCH, 1); in tty_do_resize() 2337 put_pid(pgrp); in tty_do_resize() [all …]
|
| /linux/block/ |
| H A D | ioprio.c | 69 struct pid *pgrp; in SYSCALL_DEFINE3() local 90 pgrp = task_pgrp(current); in SYSCALL_DEFINE3() 92 pgrp = find_vpid(who); in SYSCALL_DEFINE3() 95 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3() 101 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3() 184 struct pid *pgrp; in SYSCALL_DEFINE2() local 201 pgrp = task_pgrp(current); in SYSCALL_DEFINE2() 203 pgrp = find_vpid(who); in SYSCALL_DEFINE2() 205 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE2() 213 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE2()
|
| /linux/kernel/ |
| H A D | exit.c | 351 static int will_become_orphaned_pgrp(struct pid *pgrp, in will_become_orphaned_pgrp() argument 356 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in will_become_orphaned_pgrp() 362 if (task_pgrp(p->real_parent) != pgrp && in will_become_orphaned_pgrp() 365 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in will_become_orphaned_pgrp() 381 static bool has_stopped_jobs(struct pid *pgrp) in has_stopped_jobs() argument 385 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in has_stopped_jobs() 388 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in has_stopped_jobs() 401 struct pid *pgrp = task_pgrp(tsk); in kill_orphaned_pgrp() local 415 if (task_pgrp(parent) != pgrp && in kill_orphaned_pgrp() 417 will_become_orphaned_pgrp(pgrp, ignored_task) && in kill_orphaned_pgrp() [all …]
|
| H A D | sys.c | 265 struct pid *pgrp; in SYSCALL_DEFINE3() local 290 pgrp = find_vpid(who); in SYSCALL_DEFINE3() 292 pgrp = task_pgrp(current); in SYSCALL_DEFINE3() 294 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3() 296 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3() 335 struct pid *pgrp; in SYSCALL_DEFINE2() local 356 pgrp = find_vpid(who); in SYSCALL_DEFINE2() 358 pgrp = task_pgrp(current); in SYSCALL_DEFINE2() 360 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE2() 364 } while_each_pid_thread(pgrp, PIDTYPE_PGI in SYSCALL_DEFINE2() 1119 struct pid *pgrp; SYSCALL_DEFINE2() local [all...] |
| /linux/fs/autofs/ |
| H A D | inode.c | 146 int pgrp; member 213 ctx->pgrp = result.uint_32; in autofs_parse_param() 342 sbi->oz_pgrp = find_get_pid(ctx->pgrp); in autofs_fill_super() 345 ctx->pgrp); in autofs_fill_super()
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-zynq.c | 895 const struct zynq_pctrl_group *pgrp = &pctrl->groups[group]; in zynq_pinmux_set_mux() local 913 reg |= pgrp->pins[0] << func->mux_shift; in zynq_pinmux_set_mux() 919 for (i = 0; i < pgrp->npins; i++) { in zynq_pinmux_set_mux() 920 unsigned int pin = pgrp->pins[i]; in zynq_pinmux_set_mux() 1127 const struct zynq_pctrl_group *pgrp = &pctrl->groups[selector]; in zynq_pinconf_group_set() local 1129 for (i = 0; i < pgrp->npins; i++) { in zynq_pinconf_group_set() 1130 ret = zynq_pinconf_cfg_set(pctldev, pgrp->pins[i], configs, in zynq_pinconf_group_set()
|
| H A D | pinctrl-bm1880.c | 988 const struct bm1880_pctrl_group *pgrp = &pctrl->groups[group]; in bm1880_pinmux_set_mux() local 992 for (i = 0; i < pgrp->npins; i++) { in bm1880_pinmux_set_mux() 993 unsigned int pin = pgrp->pins[i]; in bm1880_pinmux_set_mux() 1275 const struct bm1880_pctrl_group *pgrp = &pctrl->groups[selector]; in bm1880_pinconf_group_set() local 1277 for (i = 0; i < pgrp->npins; i++) { in bm1880_pinconf_group_set() 1278 ret = bm1880_pinconf_cfg_set(pctldev, pgrp->pins[i], configs, in bm1880_pinconf_group_set()
|
| /linux/arch/um/drivers/ |
| H A D | line.c | 630 struct pid *pgrp; in winch_interrupt() local 659 pgrp = tty_get_pgrp(tty); in winch_interrupt() 660 if (pgrp) in winch_interrupt() 661 kill_pgrp(pgrp, SIGWINCH, 1); in winch_interrupt() 662 put_pid(pgrp); in winch_interrupt()
|