Lines Matching defs:task
47 struct task_struct *task;
54 task = get_proc_task(inode);
55 if (!task)
58 if (!ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS))
61 error = ns_get_path(&ns_path, task, ns_ops);
67 put_task_struct(task);
75 struct task_struct *task;
79 task = get_proc_task(inode);
80 if (!task)
83 if (ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) {
84 res = ns_get_name(name, sizeof(name), task, ns_ops);
88 put_task_struct(task);
99 struct task_struct *task, const void *ptr)
105 inode = proc_pid_make_inode(dentry->d_sb, task, S_IFLNK | S_IRWXUGO);
112 pid_update_inode(task, inode);
120 struct task_struct *task = get_proc_task(file_inode(file));
123 if (!task)
135 proc_ns_instantiate, task, ops))
141 put_task_struct(task);
154 struct task_struct *task = get_proc_task(dir);
159 if (!task)
172 res = proc_ns_instantiate(dentry, task, *entry);
174 put_task_struct(task);