Home
last modified time | relevance | path

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

12

/linux-6.1.9/kernel/sched/
Dcore_sched.c140 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-6.1.9/tools/testing/selftests/sched/
Dcs_prctl_test.c61 enum pid_type {PIDTYPE_PID = 0, PIDTYPE_TGID, PIDTYPE_PGID}; enumerator
116 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID, in get_cs_cookie()
301 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_SHARE_TO, pid, PIDTYPE_PID, 0) < 0) in main()
312 PIDTYPE_PID, 0) < 0) in main()
/linux-6.1.9/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()
693 task = get_pid_task(pid, PIDTYPE_PID); in pidfd_getfd()
Dexit.c125 detach_pid(p, PIDTYPE_PID); in __unhash_process()
1562 target = pid_task(wo->wo_pid, PIDTYPE_PID); in do_wait_pid()
1597 if (wo->wo_type == PIDTYPE_PID) { in do_wait()
1654 type = PIDTYPE_PID; in kernel_waitid()
1671 type = PIDTYPE_PID; in kernel_waitid()
1758 type = PIDTYPE_PID; in kernel_wait4()
1779 .wo_type = PIDTYPE_PID, in kernel_wait()
1892 task = pid_task(pid, PIDTYPE_PID); in thread_group_exited()
Dsignal.c638 *type = PIDTYPE_PID; in dequeue_signal()
1011 else if ((type == PIDTYPE_PID) || thread_group_empty(p)) in complete_signal()
1093 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending; in __send_signal_locked()
1192 trace_signal_generate(sig, info, t, type != PIDTYPE_PID, result); in __send_signal_locked()
1349 ret = send_signal_locked(sig, info, t, PIDTYPE_PID); in force_sig_info_to_task()
1476 p = pid_task(pid, PIDTYPE_PID); in kill_pid_info()
1554 p = pid_task(pid, PIDTYPE_PID); in kill_pid_usb_asyncio()
1636 return do_send_sig_info(sig, info, p, PIDTYPE_PID); in send_sig_info()
1996 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending; in send_sigqueue()
2002 trace_signal_generate(sig, &q->info, t, type != PIDTYPE_PID, result); in send_sigqueue()
[all …]
Dfork.c1790 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) in init_task_pid_links()
1797 if (type == PIDTYPE_PID) in init_task_pid()
1883 if (likely(pid_has_task(pid, PIDTYPE_PID))) { in pidfd_show_fdinfo()
2440 init_task_pid(p, PIDTYPE_PID, pid); in copy_process()
2476 attach_pid(p, PIDTYPE_PID); in copy_process()
2568 for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) { in init_idle_pids()
2688 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-6.1.9/kernel/bpf/
Dbpf_task_storage.c135 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_lookup_elem()
169 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_update_elem()
216 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_delete_elem()
Dtask_iter.c64 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
73 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
89 *tid = __task_pid_nr_ns(next_task, PIDTYPE_PID, common->ns); in task_group_seq_get_next()
143 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
/linux-6.1.9/include/linux/
Dpid.h11 PIDTYPE_PID, enumerator
203 if (type == PIDTYPE_PID) \
/linux-6.1.9/drivers/infiniband/core/
Dumem_odp.c136 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-6.1.9/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-6.1.9/fs/
Dfcntl.c180 type = PIDTYPE_PID; in f_setown_ex()
218 case PIDTYPE_PID: in f_getown_ex()
787 p = pid_task(pid, PIDTYPE_PID); in send_sigio()
828 p = pid_task(pid, PIDTYPE_PID); in send_sigurg()
/linux-6.1.9/init/
Dinit_task.c38 [PIDTYPE_PID] = &init_struct_pid,
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs_drv.c159 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID); in hl_device_open()
269 hpriv->taskpid = get_task_pid(current, PIDTYPE_PID); in hl_device_open_ctrl()
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_gem.c263 task = pid_task(file->pid, PIDTYPE_PID); in vmw_debugfs_gem_info_show()
/linux-6.1.9/fs/proc/
Dinternal.h130 return get_pid_task(proc_pid(inode), PIDTYPE_PID); in get_proc_task()
Dbase.c773 task = get_pid_task(pid, PIDTYPE_PID); in proc_single_show()
1280 if (current != pid_task(proc_pid(inode), PIDTYPE_PID)) { in proc_loginuid_write()
1911 pid = get_task_pid(task, PIDTYPE_PID); in proc_pid_make_inode()
1974 task = pid_task(proc_pid(inode), PIDTYPE_PID); in pid_getattr()
2018 task = pid_task(proc_pid(inode), PIDTYPE_PID); in pid_revalidate()
2031 return !proc_pid(inode)->tasks[PIDTYPE_PID].first; in proc_inode_is_dead()
2456 tp->task = get_pid_task(tp->pid, PIDTYPE_PID); in timers_start()
2756 task = pid_task(proc_pid(inode), PIDTYPE_PID); in proc_pid_attr_write()
3796 task = pid_task(pid, PIDTYPE_PID); in first_tid()
Dproc_net.c274 task = pid_task(proc_pid(dir), PIDTYPE_PID); in get_proc_task_net()
Dfd.c314 p = pid_task(proc_pid(inode), PIDTYPE_PID); in proc_fd_permission()
Darray.c708 start = pid_task(proc_pid(inode), PIDTYPE_PID); in get_children_pid()
717 task = pid_task(pid_prev, PIDTYPE_PID); in get_children_pid()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_rd.c383 task = pid_task(submit->pid, PIDTYPE_PID); in msm_rd_dump_submit()
/linux-6.1.9/drivers/misc/cxl/
Dapi.c287 ctx->pid = get_task_pid(task, PIDTYPE_PID); in cxl_start_context()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_debugfs.c97 task = pid_task(priv->pid, PIDTYPE_PID); in drm_clients_info()
/linux-6.1.9/drivers/tty/
Dtty_jobctrl.c443 p = pid_task(pgrp, PIDTYPE_PID); in session_of_pgrp()

12