Home
last modified time | relevance | path

Searched refs:pgrp (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/tty/
H A Dtty_jobctrl.c35 struct pid *pgrp, *tty_pgrp; in __tty_check_change() local
42 pgrp = task_pgrp(current); in __tty_check_change()
45 tty_pgrp = tty->pgrp; in __tty_check_change()
48 if (tty_pgrp && pgrp != tty_pgrp) { in __tty_check_change()
55 kill_pgrp(pgrp, sig, 1); in __tty_check_change()
63 tty_warn(tty, "sig=%d, tty->pgrp == NULL!\n", sig); in __tty_check_change()
101 * The session and fg pgrp references will be non-NULL if in __proc_set_tty()
105 put_pid(tty->pgrp); in __proc_set_tty()
106 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty()
216 tty_pgrp = get_pid(tty->pgrp); in tty_signal_session_leader()
410 struct pid *pgrp; tty_get_pgrp() local
427 session_of_pgrp(struct pid *pgrp) session_of_pgrp() argument
481 struct pid *pgrp; tiocspgrp() local
[all...]
H A Dpty.c201 struct pid *pgrp; in pty_signal() local
207 pgrp = tty_get_pgrp(tty->link); in pty_signal()
208 if (pgrp) in pty_signal()
209 kill_pgrp(pgrp, sig, 1); in pty_signal()
210 put_pid(pgrp); in pty_signal()
296 struct pid *pgrp, *rpgrp; in pty_resize() local
305 pgrp = tty_get_pgrp(tty); in pty_resize()
308 if (pgrp) in pty_resize()
309 kill_pgrp(pgrp, SIGWINCH, 1); in pty_resize()
310 if (rpgrp != pgrp in pty_resize()
[all...]
H A Dtty_io.c631 put_pid(tty->pgrp); in __tty_hangup()
633 tty->pgrp = NULL; in __tty_hangup()
1550 put_pid(tty->pgrp); in release_one_tty()
2220 if (tty->pgrp) { in __tty_fasync()
2221 pid = tty->pgrp; in __tty_fasync()
2319 struct pid *pgrp; in tty_do_resize() local
2327 pgrp = tty_get_pgrp(tty); in tty_do_resize()
2328 if (pgrp) in tty_do_resize()
2329 kill_pgrp(pgrp, SIGWINCH, 1); in tty_do_resize()
2330 put_pid(pgrp); in tty_do_resize()
[all...]
/kernel/linux/linux-6.6/drivers/tty/
H A Dtty_jobctrl.c36 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()
64 tty_warn(tty, "sig=%d, tty->pgrp == NULL!\n", sig); in __tty_check_change()
104 * The session and fg pgrp references will be non-NULL if in __proc_set_tty()
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()
424 struct pid *pgrp; tty_get_pgrp() local
441 session_of_pgrp(struct pid *pgrp) session_of_pgrp() argument
495 struct pid *pgrp; tiocspgrp() local
[all...]
H A Dpty.c190 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()
285 struct pid *pgrp, *rpgrp; in pty_resize() local
294 pgrp = tty_get_pgrp(tty); in pty_resize()
297 if (pgrp) in pty_resize()
298 kill_pgrp(pgrp, SIGWINCH, 1); in pty_resize()
299 if (rpgrp != pgrp in pty_resize()
[all...]
H A Dtty_io.c636 put_pid(tty->ctrl.pgrp); in __tty_hangup()
638 tty->ctrl.pgrp = NULL; in __tty_hangup()
1538 put_pid(tty->ctrl.pgrp); in release_one_tty()
2229 if (tty->ctrl.pgrp) { in __tty_fasync()
2230 pid = tty->ctrl.pgrp; in __tty_fasync()
2328 struct pid *pgrp; in tty_do_resize() local
2336 pgrp = tty_get_pgrp(tty); in tty_do_resize()
2337 if (pgrp) in tty_do_resize()
2338 kill_pgrp(pgrp, SIGWINCH, 1); in tty_do_resize()
2339 put_pid(pgrp); in tty_do_resize()
[all...]
/kernel/linux/linux-5.10/block/
H A Dioprio.c105 struct pid *pgrp; in SYSCALL_DEFINE3() local
126 pgrp = task_pgrp(current); in SYSCALL_DEFINE3()
128 pgrp = find_vpid(who); in SYSCALL_DEFINE3()
129 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3()
133 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3()
197 struct pid *pgrp; in SYSCALL_DEFINE2() local
214 pgrp = task_pgrp(current); in SYSCALL_DEFINE2()
216 pgrp = find_vpid(who); in SYSCALL_DEFINE2()
218 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE2()
226 } while_each_pid_thread(pgrp, PIDTYPE_PGI in SYSCALL_DEFINE2()
[all...]
/kernel/linux/linux-6.6/block/
H A Dioprio.c73 struct pid *pgrp; in SYSCALL_DEFINE3() local
94 pgrp = task_pgrp(current); in SYSCALL_DEFINE3()
96 pgrp = find_vpid(who); in SYSCALL_DEFINE3()
99 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3()
105 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3()
214 struct pid *pgrp; in SYSCALL_DEFINE2() local
231 pgrp = task_pgrp(current); in SYSCALL_DEFINE2()
233 pgrp = find_vpid(who); in SYSCALL_DEFINE2()
235 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE2()
243 } while_each_pid_thread(pgrp, PIDTYPE_PGI in SYSCALL_DEFINE2()
[all...]
/kernel/liteos_a/testsuites/unittest/fuzz/
H A Dposix_spawnattr_getpgroup_fuzzer.cpp44 s32 pgrp = *(s32 *)DT_SetGetS32(&g_Element[1], INITVALUE_S32); in TestPosixSpawnattrGetpgroup() local
45 posix_spawnattr_getpgroup((posix_spawnattr_t *)datainput, &pgrp); in TestPosixSpawnattrGetpgroup()
H A Dposix_spawnattr_setpgroup_fuzzer.cpp43 s32 pgrp = *(s32 *)DT_SetGetS32(&g_Element[1], INITVALUE_S32); in TestPosixSpawnattrSetpgroup() local
44 posix_spawnattr_setpgroup((posix_spawnattr_t *)datainput, pgrp); in TestPosixSpawnattrSetpgroup()
/kernel/linux/linux-5.10/fs/autofs/
H A Dinode.c76 seq_printf(m, ",pgrp=%d", pid_vnr(sbi->oz_pgrp)); in autofs_show_options()
120 {Opt_pgrp, "pgrp=%u"},
132 struct inode *root, int *pgrp, bool *pgrp_set, in parse_options()
185 *pgrp = option; in parse_options()
227 int pgrp = 0; in autofs_fill_super() local
282 if (parse_options(data, root_inode, &pgrp, &pgrp_set, sbi)) { in autofs_fill_super()
305 sbi->oz_pgrp = find_get_pid(pgrp); in autofs_fill_super()
308 pgrp); in autofs_fill_super()
321 pr_debug("pipe fd = %d, pgrp = %u\n", in autofs_fill_super()
131 parse_options(char *options, struct inode *root, int *pgrp, bool *pgrp_set, struct autofs_sb_info *sbi) parse_options() argument
/kernel/linux/linux-6.6/fs/autofs/
H A Dinode.c77 seq_printf(m, ",pgrp=%d", pid_vnr(sbi->oz_pgrp)); in autofs_show_options()
121 {Opt_pgrp, "pgrp=%u"},
133 struct inode *root, int *pgrp, bool *pgrp_set, in parse_options()
186 *pgrp = option; in parse_options()
228 int pgrp = 0; in autofs_fill_super() local
283 if (parse_options(data, root_inode, &pgrp, &pgrp_set, sbi)) { in autofs_fill_super()
306 sbi->oz_pgrp = find_get_pid(pgrp); in autofs_fill_super()
309 pgrp); in autofs_fill_super()
322 pr_debug("pipe fd = %d, pgrp = %u\n", in autofs_fill_super()
132 parse_options(char *options, struct inode *root, int *pgrp, bool *pgrp_set, struct autofs_sb_info *sbi) parse_options() argument
/kernel/linux/linux-5.10/kernel/
H A Dexit.c324 static int will_become_orphaned_pgrp(struct pid *pgrp, in will_become_orphaned_pgrp() argument
329 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in will_become_orphaned_pgrp()
335 if (task_pgrp(p->real_parent) != pgrp && in will_become_orphaned_pgrp()
338 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in will_become_orphaned_pgrp()
354 static bool has_stopped_jobs(struct pid *pgrp) in has_stopped_jobs() argument
358 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in has_stopped_jobs()
361 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in has_stopped_jobs()
374 struct pid *pgrp = task_pgrp(tsk); in kill_orphaned_pgrp() local
378 /* exit: our father is in a different pgrp than in kill_orphaned_pgrp()
383 /* reparent: our child is in a different pgrp tha in kill_orphaned_pgrp()
[all...]
H A Dsys.c204 struct pid *pgrp; in SYSCALL_DEFINE3() local
230 pgrp = find_vpid(who); in SYSCALL_DEFINE3()
232 pgrp = task_pgrp(current); in SYSCALL_DEFINE3()
233 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3()
235 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3()
274 struct pid *pgrp; in SYSCALL_DEFINE2() local
296 pgrp = find_vpid(who); in SYSCALL_DEFINE2()
298 pgrp = task_pgrp(current); in SYSCALL_DEFINE2()
299 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE2()
303 } while_each_pid_thread(pgrp, PIDTYPE_PGI in SYSCALL_DEFINE2()
1036 struct pid *pgrp; SYSCALL_DEFINE2() local
[all...]
/kernel/linux/linux-6.6/drivers/pinctrl/
H A Dpinctrl-zynqmp.c201 const struct zynqmp_pctrl_group *pgrp = &pctrl->groups[group]; in zynqmp_pinmux_set_mux() local
204 for (i = 0; i < pgrp->npins; i++) { in zynqmp_pinmux_set_mux()
205 unsigned int pin = pgrp->pins[i]; in zynqmp_pinmux_set_mux()
472 const struct zynqmp_pctrl_group *pgrp = &pctrl->groups[selector]; in zynqmp_pinconf_group_set() local
474 for (i = 0; i < pgrp->npins; i++) { in zynqmp_pinconf_group_set()
475 ret = zynqmp_pinconf_cfg_set(pctldev, pgrp->pins[i], configs, in zynqmp_pinconf_group_set()
H A Dpinctrl-zynq.c895 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 Dpinctrl-bm1880.c988 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()
/kernel/linux/linux-5.10/drivers/pinctrl/
H A Dpinctrl-zynq.c894 const struct zynq_pctrl_group *pgrp = &pctrl->groups[group]; in zynq_pinmux_set_mux() local
912 reg |= pgrp->pins[0] << func->mux_shift; in zynq_pinmux_set_mux()
918 for (i = 0; i < pgrp->npins; i++) { in zynq_pinmux_set_mux()
919 unsigned int pin = pgrp->pins[i]; in zynq_pinmux_set_mux()
1124 const struct zynq_pctrl_group *pgrp = &pctrl->groups[selector]; in zynq_pinconf_group_set() local
1126 for (i = 0; i < pgrp->npins; i++) { in zynq_pinconf_group_set()
1127 ret = zynq_pinconf_cfg_set(pctldev, pgrp->pins[i], configs, in zynq_pinconf_group_set()
H A Dpinctrl-bm1880.c986 const struct bm1880_pctrl_group *pgrp = &pctrl->groups[group]; in bm1880_pinmux_set_mux() local
990 for (i = 0; i < pgrp->npins; i++) { in bm1880_pinmux_set_mux()
991 unsigned int pin = pgrp->pins[i]; in bm1880_pinmux_set_mux()
1273 const struct bm1880_pctrl_group *pgrp = &pctrl->groups[selector]; in bm1880_pinconf_group_set() local
1275 for (i = 0; i < pgrp->npins; i++) { in bm1880_pinconf_group_set()
1276 ret = bm1880_pinconf_cfg_set(pctldev, pgrp->pins[i], configs, in bm1880_pinconf_group_set()
/kernel/linux/linux-5.10/arch/um/drivers/
H A Dline.c623 struct pid *pgrp; in winch_interrupt() local
649 pgrp = tty_get_pgrp(tty); in winch_interrupt()
650 if (pgrp) in winch_interrupt()
651 kill_pgrp(pgrp, SIGWINCH, 1); in winch_interrupt()
652 put_pid(pgrp); in winch_interrupt()
/kernel/linux/linux-6.6/arch/um/drivers/
H A Dline.c628 struct pid *pgrp; in winch_interrupt() local
654 pgrp = tty_get_pgrp(tty); in winch_interrupt()
655 if (pgrp) in winch_interrupt()
656 kill_pgrp(pgrp, SIGWINCH, 1); in winch_interrupt()
657 put_pid(pgrp); in winch_interrupt()
/kernel/linux/linux-6.6/kernel/
H A Dexit.c333 static int will_become_orphaned_pgrp(struct pid *pgrp, in will_become_orphaned_pgrp() argument
338 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in will_become_orphaned_pgrp()
344 if (task_pgrp(p->real_parent) != pgrp && in will_become_orphaned_pgrp()
347 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in will_become_orphaned_pgrp()
363 static bool has_stopped_jobs(struct pid *pgrp) in has_stopped_jobs() argument
367 do_each_pid_task(pgrp, PIDTYPE_PGID, p) { in has_stopped_jobs()
370 } while_each_pid_task(pgrp, PIDTYPE_PGID, p); in has_stopped_jobs()
383 struct pid *pgrp = task_pgrp(tsk); in kill_orphaned_pgrp() local
387 /* exit: our father is in a different pgrp than in kill_orphaned_pgrp()
392 /* reparent: our child is in a different pgrp tha in kill_orphaned_pgrp()
[all...]
H A Dsys.c224 struct pid *pgrp; in SYSCALL_DEFINE3() local
249 pgrp = find_vpid(who); in SYSCALL_DEFINE3()
251 pgrp = task_pgrp(current); in SYSCALL_DEFINE3()
253 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE3()
255 } while_each_pid_thread(pgrp, PIDTYPE_PGID, p); in SYSCALL_DEFINE3()
294 struct pid *pgrp; in SYSCALL_DEFINE2() local
315 pgrp = find_vpid(who); in SYSCALL_DEFINE2()
317 pgrp = task_pgrp(current); in SYSCALL_DEFINE2()
319 do_each_pid_thread(pgrp, PIDTYPE_PGID, p) { in SYSCALL_DEFINE2()
323 } while_each_pid_thread(pgrp, PIDTYPE_PGI in SYSCALL_DEFINE2()
1077 struct pid *pgrp; SYSCALL_DEFINE2() local
[all...]
/kernel/linux/linux-5.10/drivers/pinctrl/intel/
H A Dpinctrl-intel.c868 const struct intel_padgroup *pgrp = &comm->gpps[j]; in intel_gpio_to_pin() local
870 if (pgrp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_to_pin()
873 if (offset >= pgrp->gpio_base && in intel_gpio_to_pin()
874 offset < pgrp->gpio_base + pgrp->size) { in intel_gpio_to_pin()
877 pin = pgrp->base + offset - pgrp->gpio_base; in intel_gpio_to_pin()
881 *padgrp = pgrp; in intel_gpio_to_pin()
/kernel/linux/linux-6.6/drivers/pinctrl/intel/
H A Dpinctrl-intel.c902 const struct intel_padgroup *pgrp = &comm->gpps[j]; in intel_gpio_to_pin() local
904 if (pgrp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_to_pin()
907 if (offset >= pgrp->gpio_base && in intel_gpio_to_pin()
908 offset < pgrp->gpio_base + pgrp->size) { in intel_gpio_to_pin()
911 pin = pgrp->base + offset - pgrp->gpio_base; in intel_gpio_to_pin()
915 *padgrp = pgrp; in intel_gpio_to_pin()

Completed in 36 milliseconds

12