Lines Matching defs:pid
399 struct pid *pid, struct task_struct *task)
441 struct pid *pid, struct task_struct *task)
489 struct pid *pid, struct task_struct *task)
563 struct pid *pid, struct task_struct *task)
609 struct pid *pid, struct task_struct *task)
653 struct pid *pid, struct task_struct *task)
781 struct pid *pid = proc_pid(inode);
785 task = get_pid_task(pid, PIDTYPE_PID);
789 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task);
1090 * /proc/pid/oom_adj is provided for legacy purposes, ask users to use
1091 * /proc/pid/oom_score_adj instead.
1156 * /proc/pid/oom_adj exists solely for backwards compatibility with previous
1190 * Scale /proc/pid/oom_score_adj appropriately ensuring that a maximum
2019 * Before the /proc/pid/status file was created the only way to read
2020 * the effective uid of a /process was to stat /proc/pid. Reading
2021 * /proc/pid/status is slow enough that procps and other packages
2022 * kept stating /proc/pid. To keep the rules in /proc simple I have
2055 struct pid *pid = ei->pid;
2058 spin_lock(&pid->lock);
2060 spin_unlock(&pid->lock);
2063 put_pid(pid);
2071 struct pid *pid;
2089 pid = get_task_pid(task, PIDTYPE_PID);
2090 if (!pid)
2093 /* Let the pid remember us for quick removal */
2094 ei->pid = pid;
2108 * Generating an inode and adding it into @pid->inodes, so that task will
2117 * '/proc/<tgid>/task/<pid>' dentry before released.
2124 struct pid *pid;
2132 pid = ei->pid;
2133 spin_lock(&pid->lock);
2134 hlist_add_head_rcu(&ei->sibling_inodes, &pid->inodes);
2135 spin_unlock(&pid->lock);
2171 * Set <pid>/... inode ownership (can change due to setuid(), etc.)
2623 struct pid *pid;
2634 tp->task = get_pid_task(tp->pid, PIDTYPE_PID);
2686 (notify & SIGEV_THREAD_ID) ? "tid" : "pid",
2709 tp->pid = proc_pid(inode);
3202 struct pid *pid, struct task_struct *task)
3208 struct pid *pid, struct task_struct *task)
3347 struct pid *pid, struct task_struct *task)
3359 struct pid *pid, struct task_struct *task)
3368 struct pid *pid, struct task_struct *task)
3381 struct pid *pid, struct task_struct *task)
3400 struct pid *pid, struct task_struct *task)
3415 struct pid *pid, struct task_struct *task)
3568 struct pid *tgid_pidfd_to_pid(const struct file *file)
3591 * proc_flush_pid - Remove dcache entries for @pid from the /proc dcache.
3592 * @pid: pid that should be flushed.
3595 * filesystem) that are attached to the pid and flushes them from
3609 void proc_flush_pid(struct pid *pid)
3611 proc_invalidate_siblings_dcache(&pid->inodes, &pid->lock);
3680 struct pid *pid;
3687 pid = find_ge_pid(iter.tgid, ns);
3688 if (pid) {
3689 iter.tgid = pid_nr_ns(pid, ns);
3690 iter.task = pid_task(pid, PIDTYPE_TGID);
3752 * used for the node /proc/<pid>/task/<tid>/comm.
3775 /* This file (/proc/<pid>/task/<tid>/comm) can always be
3998 static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos,
4008 task = pid_task(pid, PIDTYPE_PID);
4095 * pid for the next readir call */