Lines Matching refs:pid
200 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,
204 if (force || !filp->f_owner.pid) {
205 put_pid(filp->f_owner.pid);
206 filp->f_owner.pid = get_pid(pid);
209 if (pid) {
218 int __f_setown(struct file *filp, struct pid *pid, enum pid_type type,
227 f_modown(filp, pid, type, force);
235 struct pid *pid;
244 pid = find_vpid(who);
245 result = __f_setown(filp, pid, type, force);
258 pid_t pid;
260 pid = pid_vnr(filp->f_owner.pid);
262 pid = -pid;
264 return pid;
271 struct pid *pid;
297 pid = find_vpid(owner.pid);
298 if (owner.pid && !pid)
301 ret = __f_setown(filp, pid, type, 1);
314 owner.pid = pid_vnr(filp->f_owner.pid);
555 struct pid *pid;
566 pid = fown->pid;
567 if (!pid)
571 do_each_pid_task(pid, type, p) {
573 } while_each_pid_task(pid, type, p);
590 struct pid *pid;
602 pid = fown->pid;
603 if (!pid)
609 do_each_pid_task(pid, type, p) {
611 } while_each_pid_task(pid, type, p);