/linux/kernel/sched/ |
H A D | core_sched.c | 140 BUILD_BUG_ON(PR_SCHED_CORE_SCOPE_THREAD != PIDTYPE_PID); in sched_core_share_pid() 172 if (type != PIDTYPE_PID || uaddr & 7) { in sched_core_share_pid() 197 if (type != PIDTYPE_PID) { in sched_core_share_pid() 210 if (type == PIDTYPE_PID) { in sched_core_share_pid()
|
/linux/kernel/ |
H A D | pid.c | 332 return (type == PIDTYPE_PID) ? in task_pid_ptr() 358 if (type == PIDTYPE_PID) { in __change_pid() 359 WARN_ON_ONCE(pid_has_task(pid, PIDTYPE_PID)); in __change_pid() 386 struct hlist_head *head1 = &pid1->tasks[PIDTYPE_PID]; in exchange_tids() 387 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids() 405 WARN_ON_ONCE(type == PIDTYPE_PID); in transfer_pid() 430 return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID); in find_task_by_pid_ns() 715 task = get_pid_task(pid, PIDTYPE_PID); in pidfd_getfd()
|
H A D | signal.c | 634 *type = PIDTYPE_PID; in dequeue_signal() 1006 else if ((type == PIDTYPE_PID) || thread_group_empty(p)) in complete_signal() 1087 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending; in __send_signal_locked() 1186 trace_signal_generate(sig, info, t, type != PIDTYPE_PID, result); in __send_signal_locked() 1351 ret = send_signal_locked(sig, info, t, PIDTYPE_PID); in force_sig_info_to_task() 1488 p = pid_task(pid, PIDTYPE_PID); in kill_pid_info_type() 1570 p = pid_task(pid, PIDTYPE_PID); in kill_pid_usb_asyncio() 1652 return do_send_sig_info(sig, info, p, PIDTYPE_PID); in send_sig_info() 1996 if (type != PIDTYPE_PID && same_thread_group(t, current)) in send_sigqueue() 2019 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending; in send_sigqueue() [all …]
|
H A D | exit.c | 129 detach_pid(p, PIDTYPE_PID); in __unhash_process() 1622 target = pid_task(wo->wo_pid, PIDTYPE_PID); in do_wait_pid() 1650 if (wo->wo_type == PIDTYPE_PID) { in __do_wait() 1724 type = PIDTYPE_PID; in kernel_waitid_prepare() 1741 type = PIDTYPE_PID; in kernel_waitid_prepare() 1841 type = PIDTYPE_PID; in kernel_wait4() 1862 .wo_type = PIDTYPE_PID, in kernel_wait()
|
H A D | fork.c | 1941 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) in init_task_pid_links() 1948 if (type == PIDTYPE_PID) in init_task_pid() 2058 if (!pid || !pid_has_task(pid, thread ? PIDTYPE_PID : PIDTYPE_TGID)) in pidfd_prepare() 2552 init_task_pid(p, PIDTYPE_PID, pid); in copy_process() 2586 attach_pid(p, PIDTYPE_PID); in copy_process() 2682 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) { in init_idle_pids() 2798 pid = get_task_pid(p, PIDTYPE_PID); in kernel_clone()
|
H A D | pid_namespace.c | 207 task = pid_task(pid, PIDTYPE_PID); in zap_pid_ns_processes()
|
H A D | nsproxy.c | 386 tsk = pid_task(pid, PIDTYPE_PID); in validate_nsset()
|
/linux/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 62 enum pid_type {PIDTYPE_PID = 0, PIDTYPE_TGID, PIDTYPE_PGID}; enumerator 117 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID, in get_cs_cookie() 310 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, pid, PIDTYPE_PID, 0) < 0) in main() 321 PIDTYPE_PID, 0) < 0) in main()
|
/linux/include/linux/ |
H A D | pid.h | 197 if (type == PIDTYPE_PID) \ 237 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns() 242 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
|
H A D | pid_types.h | 6 PIDTYPE_PID, enumerator
|
/linux/kernel/bpf/ |
H A D | bpf_task_storage.c | 107 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_lookup_elem() 141 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_update_elem() 192 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_delete_elem()
|
H A D | task_iter.c | 63 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next() 77 next_tid = __task_pid_nr_ns(task, PIDTYPE_PID, common->ns); in task_group_seq_get_next() 102 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next() 123 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
|
/linux/fs/ |
H A D | pidfs.c | 67 if (likely(pid_has_task(pid, PIDTYPE_PID))) { in pidfd_show_fdinfo() 108 task = pid_task(pid, PIDTYPE_PID); in pidfd_poll() 128 task = get_pid_task(pid, PIDTYPE_PID); in pidfd_ioctl()
|
H A D | fcntl.c | 231 type = PIDTYPE_PID; in f_setown_ex() 267 enum pid_type pid_type = PIDTYPE_PID; in f_getown_ex() 280 case PIDTYPE_PID: in f_getown_ex() 919 p = pid_task(pid, PIDTYPE_PID); in send_sigio() 965 p = pid_task(pid, PIDTYPE_PID); in send_sigurg()
|
/linux/drivers/infiniband/core/ |
H A D | umem_odp.c | 136 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_alloc_implicit() 250 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_get() 372 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_and_lock()
|
/linux/arch/powerpc/platforms/book3s/ |
H A D | vas-api.c | 76 task_ref->pid = get_task_pid(current, PIDTYPE_PID); in get_vas_user_win_ref() 113 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task() 116 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
|
/linux/init/ |
H A D | init_task.c | 40 [PIDTYPE_PID] = &init_struct_pid,
|
/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_drv.c | 198 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID); in hl_device_open() 307 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID); in hl_device_open_ctrl()
|
/linux/fs/proc/ |
H A D | internal.h | 131 return get_pid_task(proc_pid(inode), PIDTYPE_PID); in get_proc_task()
|
H A D | base.c | 809 task = get_pid_task(pid, PIDTYPE_PID); in proc_single_show() 1336 if (current != pid_task(proc_pid(inode), PIDTYPE_PID)) { in proc_loginuid_write() 1963 pid = get_task_pid(task, PIDTYPE_PID); in proc_pid_make_inode() 2026 task = pid_task(proc_pid(inode), PIDTYPE_PID); in pid_getattr() 2070 task = pid_task(proc_pid(inode), PIDTYPE_PID); in pid_revalidate() 2083 return !proc_pid(inode)->tasks[PIDTYPE_PID].first; in proc_inode_is_dead() 2508 tp->task = get_pid_task(tp->pid, PIDTYPE_PID); in timers_start() 2809 task = pid_task(proc_pid(inode), PIDTYPE_PID); in proc_pid_attr_write() 3865 task = pid_task(pid, PIDTYPE_PID); in first_tid()
|
H A D | proc_net.c | 275 task = pid_task(proc_pid(dir), PIDTYPE_PID); in get_proc_task_net()
|
H A D | array.c | 727 start = pid_task(proc_pid(inode), PIDTYPE_PID); in get_children_pid() 736 task = pid_task(pid_prev, PIDTYPE_PID); in get_children_pid()
|
/linux/arch/s390/kernel/ |
H A D | nmi.c | 203 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, current, PIDTYPE_PID); in s390_handle_mcck()
|
/linux/drivers/tty/ |
H A D | tty_jobctrl.c | 448 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
|
/linux/drivers/misc/cxl/ |
H A D | api.c | 287 ctx->pid = get_task_pid(task, PIDTYPE_PID); in cxl_start_context()
|