Lines Matching refs:group_leader
1071 struct task_struct *group_leader = current->group_leader; in SYSCALL_DEFINE2() local
1076 pid = task_pid_vnr(group_leader); in SYSCALL_DEFINE2()
1097 if (same_thread_group(p->real_parent, group_leader)) { in SYSCALL_DEFINE2()
1099 if (task_session(p) != task_session(group_leader)) in SYSCALL_DEFINE2()
1106 if (p != group_leader) in SYSCALL_DEFINE2()
1120 if (!g || task_session(g) != task_session(group_leader)) in SYSCALL_DEFINE2()
1211 struct task_struct *curr = current->group_leader; in set_special_pids()
1222 struct task_struct *group_leader = current->group_leader; in ksys_setsid() local
1223 struct pid *sid = task_pid(group_leader); in ksys_setsid()
1229 if (group_leader->signal->leader) in ksys_setsid()
1238 group_leader->signal->leader = 1; in ksys_setsid()
1241 proc_clear_tty(group_leader); in ksys_setsid()
1247 proc_sid_connector(group_leader); in ksys_setsid()
1248 sched_autogroup_create_attach(group_leader); in ksys_setsid()
1470 task_lock(tsk->group_leader); in do_prlimit()
1488 task_unlock(tsk->group_leader); in do_prlimit()
1507 update_rlimit_cpu(tsk->group_leader, new_rlim->rlim_cur); in do_prlimit()
1586 task_lock(current->group_leader); in SYSCALL_DEFINE2()
1588 task_unlock(current->group_leader); in SYSCALL_DEFINE2()
1606 task_lock(current->group_leader); in COMPAT_SYSCALL_DEFINE2()
1608 task_unlock(current->group_leader); in COMPAT_SYSCALL_DEFINE2()