Lines Matching refs:pid
200 struct pid *pid, struct task_struct *task) in proc_pid_cmdline() argument
212 struct pid *pid, struct task_struct *task) in proc_pid_auxv() argument
234 struct pid *pid, struct task_struct *task) in proc_pid_wchan() argument
273 struct pid *pid, struct task_struct *task) in proc_pid_stack() argument
310 struct pid *pid, struct task_struct *task) in proc_pid_schedstat() argument
382 struct pid *pid, struct task_struct *task) in proc_oom_score() argument
423 struct pid *pid, struct task_struct *task) in proc_pid_limits() argument
465 struct pid *pid, struct task_struct *task) in proc_pid_syscall() argument
533 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions() argument
537 if (pid->hide_pid < hide_pid_min) in has_pid_permissions()
539 if (in_group_p(pid->pid_gid)) in has_pid_permissions()
547 struct pid_namespace *pid = inode->i_sb->s_fs_info; in proc_pid_permission() local
554 has_perms = has_pid_permissions(pid, task, 1); in proc_pid_permission()
558 if (pid->hide_pid == 2) { in proc_pid_permission()
583 struct pid *pid; in proc_single_show() local
588 pid = proc_pid(inode); in proc_single_show()
589 task = get_pid_task(pid, PIDTYPE_PID); in proc_single_show()
593 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); in proc_single_show()
1475 ei->pid = get_task_pid(task, PIDTYPE_PID); in proc_pid_make_inode()
1476 if (!ei->pid) in proc_pid_make_inode()
1501 struct pid_namespace *pid = dentry->d_sb->s_fs_info; in pid_getattr() local
1510 if (!has_pid_permissions(pid, task, 2)) { in pid_getattr()
1954 struct pid *pid; member
1965 tp->task = get_pid_task(tp->pid, PIDTYPE_PID); in timers_start()
2040 tp->pid = proc_pid(inode); in proc_timers_open()
2386 struct pid *pid, struct task_struct *task) in proc_tid_io_accounting() argument
2392 struct pid *pid, struct task_struct *task) in proc_tgid_io_accounting() argument
2531 struct pid *pid, struct task_struct *task) in proc_pid_personality() argument
2668 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) in proc_flush_task_mnt() argument
2675 name.len = snprintf(buf, sizeof(buf), "%d", pid); in proc_flush_task_mnt()
2683 if (pid == tgid) in proc_flush_task_mnt()
2699 name.len = snprintf(buf, sizeof(buf), "%d", pid); in proc_flush_task_mnt()
2741 struct pid *pid, *tgid; in proc_flush_task() local
2744 pid = task_pid(task); in proc_flush_task()
2747 for (i = 0; i <= pid->level; i++) { in proc_flush_task()
2748 upid = &pid->numbers[i]; in proc_flush_task()
2818 struct pid *pid; in next_tgid() local
2825 pid = find_ge_pid(iter.tgid, ns); in next_tgid()
2826 if (pid) { in next_tgid()
2827 iter.tgid = pid_nr_ns(pid, ns); in next_tgid()
2828 iter.task = pid_task(pid, PIDTYPE_PID); in next_tgid()
3082 static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, in first_tid() argument
3092 task = pid_task(pid, PIDTYPE_PID); in first_tid()