• Home
  • Raw
  • Download

Lines Matching refs:pid

87 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,  in f_modown()  argument
91 if (force || !filp->f_owner.pid) { in f_modown()
92 put_pid(filp->f_owner.pid); in f_modown()
93 filp->f_owner.pid = get_pid(pid); in f_modown()
96 if (pid) { in f_modown()
105 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument
109 f_modown(filp, pid, type, force); in __f_setown()
116 struct pid *pid = NULL; in f_setown() local
131 pid = find_vpid(who); in f_setown()
132 if (!pid) in f_setown()
137 __f_setown(filp, pid, type, force); in f_setown()
151 pid_t pid = 0; in f_getown() local
155 if (pid_task(filp->f_owner.pid, filp->f_owner.pid_type)) { in f_getown()
156 pid = pid_vnr(filp->f_owner.pid); in f_getown()
158 pid = -pid; in f_getown()
162 return pid; in f_getown()
169 struct pid *pid; in f_setown_ex() local
195 pid = find_vpid(owner.pid); in f_setown_ex()
196 if (owner.pid && !pid) in f_setown_ex()
199 __f_setown(filp, pid, type, 1); in f_setown_ex()
213 if (pid_task(filp->f_owner.pid, filp->f_owner.pid_type)) in f_getown_ex()
214 owner.pid = pid_vnr(filp->f_owner.pid); in f_getown_ex()
793 struct pid *pid; in send_sigio() local
798 pid = fown->pid; in send_sigio()
799 if (!pid) in send_sigio()
804 p = pid_task(pid, PIDTYPE_PID); in send_sigio()
810 do_each_pid_task(pid, type, p) { in send_sigio()
812 } while_each_pid_task(pid, type, p); in send_sigio()
830 struct pid *pid; in send_sigurg() local
837 pid = fown->pid; in send_sigurg()
838 if (!pid) in send_sigurg()
845 p = pid_task(pid, PIDTYPE_PID); in send_sigurg()
851 do_each_pid_task(pid, type, p) { in send_sigurg()
853 } while_each_pid_task(pid, type, p); in send_sigurg()