Lines Matching refs:pid
57 static struct pid *pid_for_clock(const clockid_t clock, bool gettime) in pid_for_clock()
61 struct pid *pid; in pid_for_clock() local
73 pid = find_vpid(upid); in pid_for_clock()
74 if (!pid) in pid_for_clock()
78 struct task_struct *tsk = pid_task(pid, PIDTYPE_PID); in pid_for_clock()
79 return (tsk && same_thread_group(tsk, current)) ? pid : NULL; in pid_for_clock()
88 if (gettime && (pid == task_pid(current))) in pid_for_clock()
94 return pid_has_task(pid, PIDTYPE_TGID) ? pid : NULL; in pid_for_clock()
115 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu()
389 struct pid *pid; in posix_cpu_timer_create() local
392 pid = pid_for_clock(new_timer->it_clock, false); in posix_cpu_timer_create()
393 if (!pid) { in posix_cpu_timer_create()
411 new_timer->it.cpu.pid = get_pid(pid); in posix_cpu_timer_create()
507 put_pid(ctmr->pid); in posix_cpu_timer_del()