Lines Matching refs:pid

89 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,  in f_modown()  argument
93 if (force || !filp->f_owner.pid) { in f_modown()
94 put_pid(filp->f_owner.pid); in f_modown()
95 filp->f_owner.pid = get_pid(pid); in f_modown()
98 if (pid) { in f_modown()
107 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument
111 f_modown(filp, pid, type, force); in __f_setown()
118 struct pid *pid = NULL; in f_setown() local
133 pid = find_vpid(who); in f_setown()
134 if (!pid) in f_setown()
139 __f_setown(filp, pid, type, force); in f_setown()
153 pid_t pid = 0; in f_getown() local
157 if (pid_task(filp->f_owner.pid, filp->f_owner.pid_type)) { in f_getown()
158 pid = pid_vnr(filp->f_owner.pid); in f_getown()
160 pid = -pid; in f_getown()
164 return pid; in f_getown()
171 struct pid *pid; in f_setown_ex() local
197 pid = find_vpid(owner.pid); in f_setown_ex()
198 if (owner.pid && !pid) in f_setown_ex()
201 __f_setown(filp, pid, type, 1); in f_setown_ex()
215 if (pid_task(filp->f_owner.pid, filp->f_owner.pid_type)) in f_getown_ex()
216 owner.pid = pid_vnr(filp->f_owner.pid); in f_getown_ex()
776 struct pid *pid; in send_sigio() local
781 pid = fown->pid; in send_sigio()
782 if (!pid) in send_sigio()
787 p = pid_task(pid, PIDTYPE_PID); in send_sigio()
793 do_each_pid_task(pid, type, p) { in send_sigio()
795 } while_each_pid_task(pid, type, p); in send_sigio()
813 struct pid *pid; in send_sigurg() local
820 pid = fown->pid; in send_sigurg()
821 if (!pid) in send_sigurg()
828 p = pid_task(pid, PIDTYPE_PID); in send_sigurg()
834 do_each_pid_task(pid, type, p) { in send_sigurg()
836 } while_each_pid_task(pid, type, p); in send_sigurg()