Home
last modified time | relevance | path

Searched refs:PIDTYPE_PID (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v5.15/kernel/sched/
Dcore_sched.c165 if (type != PIDTYPE_PID || uaddr & 7) { in sched_core_share_pid()
190 if (type != PIDTYPE_PID) { in sched_core_share_pid()
203 if (type == PIDTYPE_PID) { in sched_core_share_pid()
/Linux-v5.15/tools/testing/selftests/sched/
Dcs_prctl_test.c61 enum pid_type {PIDTYPE_PID = 0, PIDTYPE_TGID, PIDTYPE_PGID}; enumerator
99 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID, in get_cs_cookie()
293 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, pid, PIDTYPE_PID, 0) < 0) in main()
304 PIDTYPE_PID, 0) < 0) in main()
/Linux-v5.15/kernel/
Dpid.c323 return (type == PIDTYPE_PID) ? in task_pid_ptr()
372 struct hlist_head *head1 = &pid1->tasks[PIDTYPE_PID]; in exchange_tids()
373 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids()
391 if (type == PIDTYPE_PID) in transfer_pid()
417 return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID); in find_task_by_pid_ns()
656 task = get_pid_task(pid, PIDTYPE_PID); in pidfd_getfd()
Dexit.c75 detach_pid(p, PIDTYPE_PID); in __unhash_process()
1471 target = pid_task(wo->wo_pid, PIDTYPE_PID); in do_wait_pid()
1506 if (wo->wo_type == PIDTYPE_PID) { in do_wait()
1563 type = PIDTYPE_PID; in kernel_waitid()
1580 type = PIDTYPE_PID; in kernel_waitid()
1667 type = PIDTYPE_PID; in kernel_wait4()
1688 .wo_type = PIDTYPE_PID, in kernel_wait()
1801 task = pid_task(pid, PIDTYPE_PID); in thread_group_exited()
Dsignal.c1003 else if ((type == PIDTYPE_PID) || thread_group_empty(p)) in complete_signal()
1085 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending; in __send_signal()
1184 trace_signal_generate(sig, info, t, type != PIDTYPE_PID, result); in __send_signal()
1337 ret = send_signal(sig, info, t, PIDTYPE_PID); in force_sig_info_to_task()
1464 p = pid_task(pid, PIDTYPE_PID); in kill_pid_info()
1542 p = pid_task(pid, PIDTYPE_PID); in kill_pid_usb_asyncio()
1624 return do_send_sig_info(sig, info, p, PIDTYPE_PID); in send_sig_info()
1950 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending; in send_sigqueue()
1956 trace_signal_generate(sig, &q->info, t, type != PIDTYPE_PID, result); in send_sigqueue()
2592 send_signal(signr, info, current, PIDTYPE_PID); in ptrace_signal()
[all …]
Dfork.c1742 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) in init_task_pid_links()
1749 if (type == PIDTYPE_PID) in init_task_pid()
1834 if (likely(pid_has_task(pid, PIDTYPE_PID))) { in pidfd_show_fdinfo()
2363 init_task_pid(p, PIDTYPE_PID, pid); in copy_process()
2398 attach_pid(p, PIDTYPE_PID); in copy_process()
2486 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) { in init_idle_pids()
2596 pid = get_task_pid(p, PIDTYPE_PID); in kernel_clone()
Dpid_namespace.c203 task = pid_task(pid, PIDTYPE_PID); in zap_pid_ns_processes()
/Linux-v5.15/kernel/bpf/
Dbpf_task_storage.c133 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_lookup_elem()
167 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_update_elem()
213 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_delete_elem()
Dtask_iter.c36 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
/Linux-v5.15/include/linux/
Dpid.h11 PIDTYPE_PID, enumerator
202 if (type == PIDTYPE_PID) \
/Linux-v5.15/arch/powerpc/platforms/book3s/
Dvas-api.c74 task_ref->pid = get_task_pid(current, PIDTYPE_PID); in get_vas_user_win_ref()
111 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
114 tsk = get_pid_task(pid, PIDTYPE_PID); in ref_get_pid_and_task()
/Linux-v5.15/drivers/infiniband/core/
Dumem_odp.c138 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_alloc_implicit()
253 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_get()
375 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_and_lock()
/Linux-v5.15/fs/
Dfcntl.c180 type = PIDTYPE_PID; in f_setown_ex()
218 case PIDTYPE_PID: in f_getown_ex()
805 p = pid_task(pid, PIDTYPE_PID); in send_sigio()
846 p = pid_task(pid, PIDTYPE_PID); in send_sigurg()
/Linux-v5.15/init/
Dinit_task.c38 [PIDTYPE_PID] = &init_struct_pid,
/Linux-v5.15/fs/proc/
Dinternal.h130 return get_pid_task(proc_pid(inode), PIDTYPE_PID); in get_proc_task()
Dbase.c771 task = get_pid_task(pid, PIDTYPE_PID); in proc_single_show()
1278 if (current != pid_task(proc_pid(inode), PIDTYPE_PID)) { in proc_loginuid_write()
1909 pid = get_task_pid(task, PIDTYPE_PID); in proc_pid_make_inode()
1944 task = pid_task(proc_pid(inode), PIDTYPE_PID); in pid_getattr()
1999 return !proc_pid(inode)->tasks[PIDTYPE_PID].first; in proc_inode_is_dead()
2421 tp->task = get_pid_task(tp->pid, PIDTYPE_PID); in timers_start()
2721 task = pid_task(proc_pid(inode), PIDTYPE_PID); in proc_pid_attr_write()
3722 task = pid_task(pid, PIDTYPE_PID); in first_tid()
Dfd.c304 p = pid_task(proc_pid(inode), PIDTYPE_PID); in proc_fd_permission()
Dproc_net.c264 task = pid_task(proc_pid(dir), PIDTYPE_PID); in get_proc_task_net()
Darray.c702 start = pid_task(proc_pid(inode), PIDTYPE_PID); in get_children_pid()
711 task = pid_task(pid_prev, PIDTYPE_PID); in get_children_pid()
/Linux-v5.15/drivers/gpu/drm/msm/
Dmsm_rd.c371 task = pid_task(submit->pid, PIDTYPE_PID); in msm_rd_dump_submit()
Dmsm_gpu.c376 task = get_pid_task(submit->pid, PIDTYPE_PID); in recover_worker()
467 task = get_pid_task(submit->pid, PIDTYPE_PID); in fault_worker()
/Linux-v5.15/drivers/gpu/drm/
Ddrm_debugfs.c97 task = pid_task(priv->pid, PIDTYPE_PID); in drm_clients_info()
/Linux-v5.15/drivers/tty/
Dtty_jobctrl.c443 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()
/Linux-v5.15/drivers/misc/cxl/
Dapi.c286 ctx->pid = get_task_pid(task, PIDTYPE_PID); in cxl_start_context()
/Linux-v5.15/drivers/misc/habanalabs/common/
Dhabanalabs_drv.c144 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID); in hl_device_open()

12