Lines Matching defs:leader
2769 struct dentry *dentry, *leader, *dir;
2784 leader = d_hash_and_lookup(mnt->mnt_root, &name);
2785 if (!leader)
2790 dir = d_hash_and_lookup(leader, &name);
2805 dput(leader);
2943 * group leader, and don't worry if the task we have
2944 * found doesn't happen to be a thread group leader.
3130 struct task_struct *leader = get_proc_task(dir);
3134 if (!leader)
3149 if (!same_thread_group(leader, task))
3156 put_task_struct(leader);
3164 * Usually this is just the thread group leader, but if the users
3170 * In the case of a seek we start with the leader and walk nr
3173 static struct task_struct *first_tid(struct task_struct *leader,
3182 if (pos && (pos->group_leader == leader))
3188 if (nr && nr >= get_nr_threads(leader))
3192 * with the leader and walk nr threads forward.
3194 for (pos = leader; nr > 0; --nr) {
3196 if (pos == leader) {
3244 struct task_struct *leader = NULL;
3256 leader = task->group_leader;
3257 get_task_struct(leader);
3261 if (!leader)
3286 for (task = first_tid(leader, tid, filp->f_pos - 2, ns);
3299 put_task_struct(leader);