Lines Matching refs:pid
64 * Take reference to pid and mm
70 * it exits. So take reference to its pid and release it
72 * Acquire a reference to the task's pid to make sure
73 * pid will not be re-used - needed only for multithread
76 task_ref->pid = get_task_pid(current, PIDTYPE_PID);
82 put_pid(task_ref->pid);
83 pr_err("pid(%d): mm_struct is not found\n",
84 current->pid);
107 struct task_struct **tskp, struct pid **pidp)
110 struct pid *pid;
112 pid = task_ref->pid;
113 tsk = get_pid_task(pid, PIDTYPE_PID);
115 pid = task_ref->tgid;
116 tsk = get_pid_task(pid, PIDTYPE_PID);
132 *pidp = pid;
155 struct pid *pid;
189 * invalid, send SEGV signal to pid saved in window. If the
193 * pid and mm references are taken when window is opened by
194 * process (pid). So tgid is used only when child thread opens
198 if (!ref_get_pid_and_task(task_ref, &tsk, &pid))
221 pr_debug("Invalid CSB address 0x%p signalling pid(%d)\n",
222 csb_addr, pid_vnr(pid));
237 rc = kill_pid_info(SIGSEGV, &info, pid);
240 pr_devel("pid %d kill_proc_info() rc %d\n", pid_vnr(pid), rc);