/linux-master/include/linux/ |
H A D | pid_types.h | 6 PIDTYPE_PID, enumerator in enum:pid_type
|
H A D | pid.h | 197 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 D | core_sched.c | 140 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 D | pid.c | 332 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 D | signal.c | 635 *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 D | exit.c | 130 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 D | pid_namespace.c | 207 task = pid_task(pid, PIDTYPE_PID);
|
H A D | fork.c | 1957 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 D | cs_prctl_test.c | 62 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 D | bpf_task_storage.c | 107 task = pid_task(pid, PIDTYPE_PID); 141 task = pid_task(pid, PIDTYPE_PID); 192 task = pid_task(pid, PIDTYPE_PID);
|
H A D | task_iter.c | 63 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 D | pidfs.c | 61 if (likely(pid_has_task(pid, PIDTYPE_PID))) { 102 task = pid_task(pid, PIDTYPE_PID);
|
H A D | fcntl.c | 182 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 D | umem_odp.c | 136 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 D | vas-api.c | 76 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 D | internal.h | 130 return get_pid_task(proc_pid(inode), PIDTYPE_PID);
|
H A D | proc_net.c | 274 task = pid_task(proc_pid(dir), PIDTYPE_PID);
|
H A D | fd.c | 343 p = pid_task(proc_pid(inode), PIDTYPE_PID);
|
H A D | base.c | 774 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 D | init_task.c | 39 [PIDTYPE_PID] = &init_struct_pid,
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | habanalabs_drv.c | 195 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 D | msm_rd.c | 376 task = pid_task(submit->pid, PIDTYPE_PID);
|
/linux-master/arch/s390/kernel/ |
H A D | nmi.c | 201 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, current, PIDTYPE_PID);
|
/linux-master/drivers/misc/cxl/ |
H A D | api.c | 287 ctx->pid = get_task_pid(task, PIDTYPE_PID);
|
/linux-master/drivers/tty/ |
H A D | tty_jobctrl.c | 448 p = pid_task(pgrp, PIDTYPE_PID);
|