Lines Matching refs:pid

404 			 struct pid *pid, struct task_struct *task)  in proc_pid_auxv()  argument
426 struct pid *pid, struct task_struct *task) in proc_pid_wchan() argument
465 struct pid *pid, struct task_struct *task) in proc_pid_stack() argument
502 struct pid *pid, struct task_struct *task) in proc_pid_schedstat() argument
577 struct pid *pid, struct task_struct *task) in proc_oom_score() argument
618 struct pid *pid, struct task_struct *task) in proc_pid_limits() argument
660 struct pid *pid, struct task_struct *task) in proc_pid_syscall() argument
728 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions() argument
732 if (pid->hide_pid < hide_pid_min) in has_pid_permissions()
734 if (in_group_p(pid->pid_gid)) in has_pid_permissions()
742 struct pid_namespace *pid = inode->i_sb->s_fs_info; in proc_pid_permission() local
749 has_perms = has_pid_permissions(pid, task, 1); in proc_pid_permission()
753 if (pid->hide_pid == 2) { in proc_pid_permission()
778 struct pid *pid; in proc_single_show() local
783 pid = proc_pid(inode); in proc_single_show()
784 task = get_pid_task(pid, PIDTYPE_PID); in proc_single_show()
788 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); in proc_single_show()
1663 ei->pid = get_task_pid(task, PIDTYPE_PID); in proc_pid_make_inode()
1664 if (!ei->pid) in proc_pid_make_inode()
1689 struct pid_namespace *pid = dentry->d_sb->s_fs_info; in pid_getattr() local
1698 if (!has_pid_permissions(pid, task, 2)) { in pid_getattr()
2150 struct pid *pid; member
2161 tp->task = get_pid_task(tp->pid, PIDTYPE_PID); in timers_start()
2236 tp->pid = proc_pid(inode); in proc_timers_open()
2572 struct pid *pid, struct task_struct *task) in proc_tid_io_accounting() argument
2578 struct pid *pid, struct task_struct *task) in proc_tgid_io_accounting() argument
2717 struct pid *pid, struct task_struct *task) in proc_pid_personality() argument
2852 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) in proc_flush_task_mnt() argument
2859 name.len = snprintf(buf, sizeof(buf), "%d", pid); in proc_flush_task_mnt()
2867 if (pid == tgid) in proc_flush_task_mnt()
2883 name.len = snprintf(buf, sizeof(buf), "%d", pid); in proc_flush_task_mnt()
2925 struct pid *pid, *tgid; in proc_flush_task() local
2928 pid = task_pid(task); in proc_flush_task()
2931 for (i = 0; i <= pid->level; i++) { in proc_flush_task()
2932 upid = &pid->numbers[i]; in proc_flush_task()
3002 struct pid *pid; in next_tgid() local
3009 pid = find_ge_pid(iter.tgid, ns); in next_tgid()
3010 if (pid) { in next_tgid()
3011 iter.tgid = pid_nr_ns(pid, ns); in next_tgid()
3012 iter.task = pid_task(pid, PIDTYPE_PID); in next_tgid()
3266 static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, in first_tid() argument
3276 task = pid_task(pid, PIDTYPE_PID); in first_tid()