Lines Matching defs:pid
395 struct pid *pid, struct task_struct *task)
437 struct pid *pid, struct task_struct *task)
485 struct pid *pid, struct task_struct *task)
559 struct pid *pid, struct task_struct *task)
605 struct pid *pid, struct task_struct *task)
649 struct pid *pid, struct task_struct *task)
776 struct pid *pid = proc_pid(inode);
780 task = get_pid_task(pid, PIDTYPE_PID);
784 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task);
1101 * /proc/pid/oom_adj is provided for legacy purposes, ask users to use
1102 * /proc/pid/oom_score_adj instead.
1167 * /proc/pid/oom_adj exists solely for backwards compatibility with previous
1201 * Scale /proc/pid/oom_score_adj appropriately ensuring that a maximum
2028 * Before the /proc/pid/status file was created the only way to read
2029 * the effective uid of a /process was to stat /proc/pid. Reading
2030 * /proc/pid/status is slow enough that procps and other packages
2031 * kept stating /proc/pid. To keep the rules in /proc simple I have
2064 struct pid *pid = ei->pid;
2067 spin_lock(&pid->lock);
2069 spin_unlock(&pid->lock);
2072 put_pid(pid);
2080 struct pid *pid;
2098 pid = get_task_pid(task, PIDTYPE_PID);
2099 if (!pid)
2102 /* Let the pid remember us for quick removal */
2103 ei->pid = pid;
2117 * Generating an inode and adding it into @pid->inodes, so that task will
2126 * '/proc/<tgid>/task/<pid>' dentry before released.
2133 struct pid *pid;
2141 pid = ei->pid;
2142 spin_lock(&pid->lock);
2143 hlist_add_head_rcu(&ei->sibling_inodes, &pid->inodes);
2144 spin_unlock(&pid->lock);
2180 * Set <pid>/... inode ownership (can change due to setuid(), etc.)
2627 struct pid *pid;
2638 tp->task = get_pid_task(tp->pid, PIDTYPE_PID);
2690 (notify & SIGEV_THREAD_ID) ? "tid" : "pid",
2713 tp->pid = proc_pid(inode);
3206 struct pid *pid, struct task_struct *task)
3212 struct pid *pid, struct task_struct *task)
3351 struct pid *pid, struct task_struct *task)
3363 struct pid *pid, struct task_struct *task)
3372 struct pid *pid, struct task_struct *task)
3387 struct pid *pid, struct task_struct *task)
3540 struct pid *tgid_pidfd_to_pid(const struct file *file)
3563 * proc_flush_pid - Remove dcache entries for @pid from the /proc dcache.
3564 * @pid: pid that should be flushed.
3567 * filesystem) that are attached to the pid and flushes them from
3581 void proc_flush_pid(struct pid *pid)
3583 proc_invalidate_siblings_dcache(&pid->inodes, &pid->lock);
3652 struct pid *pid;
3659 pid = find_ge_pid(iter.tgid, ns);
3660 if (pid) {
3661 iter.tgid = pid_nr_ns(pid, ns);
3662 iter.task = pid_task(pid, PIDTYPE_TGID);
3724 * used for the node /proc/<pid>/task/<tid>/comm.
3746 /* This file (/proc/<pid>/task/<tid>/comm) can always be
3965 static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos,
3975 task = pid_task(pid, PIDTYPE_PID);
4060 * pid for the next readir call */