Lines Matching refs:group_leader
922 struct task_struct *group_leader = current->group_leader; in SYSCALL_DEFINE2() local
927 pid = task_pid_vnr(group_leader); in SYSCALL_DEFINE2()
948 if (same_thread_group(p->real_parent, group_leader)) { in SYSCALL_DEFINE2()
950 if (task_session(p) != task_session(group_leader)) in SYSCALL_DEFINE2()
957 if (p != group_leader) in SYSCALL_DEFINE2()
971 if (!g || task_session(g) != task_session(group_leader)) in SYSCALL_DEFINE2()
1057 struct task_struct *curr = current->group_leader; in set_special_pids()
1068 struct task_struct *group_leader = current->group_leader; in SYSCALL_DEFINE0() local
1069 struct pid *sid = task_pid(group_leader); in SYSCALL_DEFINE0()
1075 if (group_leader->signal->leader) in SYSCALL_DEFINE0()
1084 group_leader->signal->leader = 1; in SYSCALL_DEFINE0()
1087 proc_clear_tty(group_leader); in SYSCALL_DEFINE0()
1093 proc_sid_connector(group_leader); in SYSCALL_DEFINE0()
1094 sched_autogroup_create_attach(group_leader); in SYSCALL_DEFINE0()
1314 task_lock(current->group_leader); in SYSCALL_DEFINE2()
1316 task_unlock(current->group_leader); in SYSCALL_DEFINE2()
1384 task_lock(tsk->group_leader); in do_prlimit()
1392 retval = security_task_setrlimit(tsk->group_leader, in do_prlimit()
1410 task_unlock(tsk->group_leader); in do_prlimit()