Searched refs:PIDTYPE_PID (Results 1 - 25 of 51) sorted by relevance

123

/linux-master/include/linux/
H A Dpid_types.h6 PIDTYPE_PID, enumerator in enum:pid_type
H A Dpid.h197 if (type == PIDTYPE_PID) \
237 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns);
242 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL);
/linux-master/kernel/sched/
H A Dcore_sched.c140 BUILD_BUG_ON(PR_SCHED_CORE_SCOPE_THREAD != PIDTYPE_PID);
172 if (type != PIDTYPE_PID || uaddr & 7) {
197 if (type != PIDTYPE_PID) {
210 if (type == PIDTYPE_PID) {
/linux-master/kernel/
H A Dpid.c332 return (type == PIDTYPE_PID) ?
358 if (type == PIDTYPE_PID) {
359 WARN_ON_ONCE(pid_has_task(pid, PIDTYPE_PID));
386 struct hlist_head *head1 = &pid1->tasks[PIDTYPE_PID];
387 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID];
405 WARN_ON_ONCE(type == PIDTYPE_PID);
430 return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID);
715 task = get_pid_task(pid, PIDTYPE_PID);
H A Dsignal.c635 *type = PIDTYPE_PID;
1007 else if ((type == PIDTYPE_PID) || thread_group_empty(p))
1088 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending;
1187 trace_signal_generate(sig, info, t, type != PIDTYPE_PID, result);
1352 ret = send_signal_locked(sig, info, t, PIDTYPE_PID);
1441 * individual thread if type == PIDTYPE_PID.
1491 p = pid_task(pid, PIDTYPE_PID);
1573 p = pid_task(pid, PIDTYPE_PID);
1655 return do_send_sig_info(sig, info, p, PIDTYPE_PID);
1983 * Where type is PIDTYPE_PID (suc
[all...]
H A Dexit.c130 detach_pid(p, PIDTYPE_PID);
1543 * Optimization for waiting on PIDTYPE_PID. No need to iterate through child
1561 target = pid_task(wo->wo_pid, PIDTYPE_PID);
1589 if (wo->wo_type == PIDTYPE_PID) {
1663 type = PIDTYPE_PID;
1680 type = PIDTYPE_PID;
1780 type = PIDTYPE_PID;
1801 .wo_type = PIDTYPE_PID,
H A Dpid_namespace.c207 task = pid_task(pid, PIDTYPE_PID);
H A Dfork.c1957 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type)
1964 if (type == PIDTYPE_PID)
2074 if (!pid || !pid_has_task(pid, thread ? PIDTYPE_PID : PIDTYPE_TGID))
2566 init_task_pid(p, PIDTYPE_PID, pid);
2600 attach_pid(p, PIDTYPE_PID);
2693 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) {
2809 pid = get_task_pid(p, PIDTYPE_PID);
/linux-master/tools/testing/selftests/sched/
H A Dcs_prctl_test.c62 enum pid_type {PIDTYPE_PID = 0, PIDTYPE_TGID, PIDTYPE_PGID}; enumerator in enum:pid_type
117 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID,
308 printf("\n## Copy the cookie of current/PGID[%d], to pid [%d] as PIDTYPE_PID\n",
310 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, pid, PIDTYPE_PID, 0) < 0)
318 printf("\n## Copy cookie from a thread [%d] to current/PGID [%d] as PIDTYPE_PID\n",
321 PIDTYPE_PID, 0) < 0)
/linux-master/kernel/bpf/
H A Dbpf_task_storage.c107 task = pid_task(pid, PIDTYPE_PID);
141 task = pid_task(pid, PIDTYPE_PID);
192 task = pid_task(pid, PIDTYPE_PID);
H A Dtask_iter.c63 task = get_pid_task(pid, PIDTYPE_PID);
77 next_tid = __task_pid_nr_ns(task, PIDTYPE_PID, common->ns);
123 task = get_pid_task(pid, PIDTYPE_PID);
/linux-master/fs/
H A Dpidfs.c61 if (likely(pid_has_task(pid, PIDTYPE_PID))) {
102 task = pid_task(pid, PIDTYPE_PID);
H A Dfcntl.c182 type = PIDTYPE_PID;
220 case PIDTYPE_PID:
805 p = pid_task(pid, PIDTYPE_PID);
846 p = pid_task(pid, PIDTYPE_PID);
/linux-master/drivers/infiniband/core/
H A Dumem_odp.c136 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID);
250 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID);
372 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID);
/linux-master/arch/powerpc/platforms/book3s/
H A Dvas-api.c76 task_ref->pid = get_task_pid(current, PIDTYPE_PID);
113 tsk = get_pid_task(pid, PIDTYPE_PID);
116 tsk = get_pid_task(pid, PIDTYPE_PID);
/linux-master/fs/proc/
H A Dinternal.h130 return get_pid_task(proc_pid(inode), PIDTYPE_PID);
H A Dproc_net.c274 task = pid_task(proc_pid(dir), PIDTYPE_PID);
H A Dfd.c343 p = pid_task(proc_pid(inode), PIDTYPE_PID);
H A Dbase.c774 task = get_pid_task(pid, PIDTYPE_PID);
1279 if (current != pid_task(proc_pid(inode), PIDTYPE_PID)) {
1906 pid = get_task_pid(task, PIDTYPE_PID);
1969 task = pid_task(proc_pid(inode), PIDTYPE_PID);
2013 task = pid_task(proc_pid(inode), PIDTYPE_PID);
2026 return !proc_pid(inode)->tasks[PIDTYPE_PID].first;
2451 tp->task = get_pid_task(tp->pid, PIDTYPE_PID);
2751 task = pid_task(proc_pid(inode), PIDTYPE_PID);
3807 task = pid_task(pid, PIDTYPE_PID);
/linux-master/init/
H A Dinit_task.c39 [PIDTYPE_PID] = &init_struct_pid,
/linux-master/drivers/accel/habanalabs/common/
H A Dhabanalabs_drv.c195 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID);
304 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID);
/linux-master/drivers/gpu/drm/msm/
H A Dmsm_rd.c376 task = pid_task(submit->pid, PIDTYPE_PID);
/linux-master/arch/s390/kernel/
H A Dnmi.c201 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, current, PIDTYPE_PID);
/linux-master/drivers/misc/cxl/
H A Dapi.c287 ctx->pid = get_task_pid(task, PIDTYPE_PID);
/linux-master/drivers/tty/
H A Dtty_jobctrl.c448 p = pid_task(pgrp, PIDTYPE_PID);

Completed in 378 milliseconds

123