Home
last modified time | relevance | path

Searched refs:PIDTYPE_TGID (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.15/include/linux/
H A Dpid_types.h7 PIDTYPE_TGID, enumerator
H A Dpid.h289 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); in task_tgid_nr_ns()
294 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, NULL); in task_tgid_vnr()
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_send_signal_kern.c37 ret = bpf_send_signal_task(target_task, sig, PIDTYPE_TGID, value); in bpf_send_signal_test()
/linux-6.15/fs/
H A Dfcntl.c161 type = PIDTYPE_TGID; in f_setown()
192 __f_setown(filp, NULL, PIDTYPE_TGID, 1); in f_delown()
234 type = PIDTYPE_TGID; in f_setown_ex()
283 case PIDTYPE_TGID: in f_getown_ex()
914 if (type <= PIDTYPE_TGID) { in send_sigio()
960 if (type <= PIDTYPE_TGID) { in send_sigurg()
H A Dpidfs.c788 type = PIDTYPE_TGID; in pidfs_pid_valid()
/linux-6.15/tools/testing/selftests/sched/
H A Dcs_prctl_test.c62 enum pid_type {PIDTYPE_PID = 0, PIDTYPE_TGID, PIDTYPE_PGID}; enumerator
300 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, pid, PIDTYPE_TGID, 0) < 0) in main()
/linux-6.15/kernel/time/
H A Dposix-cpu-timers.c94 return pid_has_task(pid, PIDTYPE_TGID) ? pid : NULL; in pid_for_clock()
110 return CPUCLOCK_PERTHREAD(clock) ? PIDTYPE_PID : PIDTYPE_TGID; in clock_pid_type()
842 send_signal_locked(SIGXCPU, SEND_SIG_PRIV, tsk, PIDTYPE_TGID); in check_dl_overrun()
856 send_signal_locked(signo, SEND_SIG_PRIV, current, PIDTYPE_TGID); in check_rlimit()
930 send_signal_locked(signo, SEND_SIG_PRIV, tsk, PIDTYPE_TGID); in check_cpu_itimer()
H A Ditimer.c180 struct pid *leader_pid = sig->pids[PIDTYPE_TGID]; in it_real_fn()
/linux-6.15/drivers/tty/
H A Dtty_jobctrl.c218 send_signal_locked(SIGHUP, SEND_SIG_PRIV, p, PIDTYPE_TGID); in tty_signal_session_leader()
219 send_signal_locked(SIGCONT, SEND_SIG_PRIV, p, PIDTYPE_TGID); in tty_signal_session_leader()
/linux-6.15/kernel/sched/
H A Dcore_sched.c141 BUILD_BUG_ON(PR_SCHED_CORE_SCOPE_THREAD_GROUP != PIDTYPE_TGID); in sched_core_share_pid()
/linux-6.15/init/
H A Dinit_task.c42 [PIDTYPE_TGID] = &init_struct_pid,
/linux-6.15/kernel/
H A Dsignal.c631 *type = PIDTYPE_TGID; in dequeue_signal()
1140 if (type > PIDTYPE_TGID) { in __send_signal_locked()
1473 return kill_pid_info_type(sig, info, pid, PIDTYPE_TGID); in kill_pid_info()
1554 ret = __send_signal_locked(sig, &info, p, PIDTYPE_TGID, false); in kill_pid_usb_asyncio()
2329 send_signal_locked(SIGCHLD, &info, parent, PIDTYPE_TGID); in do_notify_parent_cldstop()
3953 prepare_kill_siginfo(sig, &info, PIDTYPE_TGID); in SYSCALL_DEFINE2()
4020 type = PIDTYPE_TGID; in do_pidfd_send_signal()
4038 if ((task_pid(current) != pid || type > PIDTYPE_TGID) && in do_pidfd_send_signal()
4085 pid = get_task_pid(current, PIDTYPE_TGID); in SYSCALL_DEFINE4()
4086 type = PIDTYPE_TGID; in SYSCALL_DEFINE4()
[all …]
H A Dpid.c586 type = PIDTYPE_TGID; in pidfd_get_task()
593 type = PIDTYPE_TGID; in pidfd_get_task()
H A Dexit.c139 detach_pid(post->pids, p, PIDTYPE_TGID); in __unhash_process()
733 PIDTYPE_TGID); in forget_original_parent()
1628 target = pid_task(wo->wo_pid, PIDTYPE_TGID); in do_wait_pid()
H A Dfork.c2114 if (!pid || !pid_has_task(pid, thread ? PIDTYPE_PID : PIDTYPE_TGID)) in pidfd_prepare()
2613 init_task_pid(p, PIDTYPE_TGID, pid); in copy_process()
2632 attach_pid(p, PIDTYPE_TGID); in copy_process()
/linux-6.15/mm/
H A Doom_kill.c952 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, victim, PIDTYPE_TGID); in __oom_kill_process()
992 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, p, PIDTYPE_TGID); in __oom_kill_process()
/linux-6.15/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_gem.c334 task = pid_task(pid, PIDTYPE_TGID); in vmw_debugfs_gem_info_show()
/linux-6.15/fs/notify/dnotify/
H A Ddnotify.c369 __f_setown(filp, task_pid(current), PIDTYPE_TGID, 0); in fcntl_dirnotify()
/linux-6.15/drivers/gpu/drm/tegra/
H A Duapi.c119 host, client->base.dev, get_task_pid(current, PIDTYPE_TGID)); in tegra_drm_ioctl_channel_open()
/linux-6.15/include/linux/sched/
H A Dsignal.h677 return task->signal->pids[PIDTYPE_TGID]; in task_tgid()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_debugfs.c101 task = pid_task(pid, PIDTYPE_TGID); in drm_clients_info()
/linux-6.15/ipc/
H A Dmqueue.c821 task = pid_task(info->notify_owner, PIDTYPE_TGID); in __do_notify()
825 &sig_i, task, PIDTYPE_TGID); in __do_notify()
/linux-6.15/kernel/bpf/
H A Dtask_iter.c46 task = get_pid_task(pid, PIDTYPE_TGID); in task_group_seq_get_next()
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gem.c1011 task = pid_task(pid, PIDTYPE_TGID); in amdgpu_debugfs_gem_info_show()
/linux-6.15/kernel/trace/
H A Dbpf_trace.c882 return bpf_send_signal_common(sig, PIDTYPE_TGID, NULL, 0); in BPF_CALL_1()
3420 task = get_pid_task(find_vpid(pid), PIDTYPE_TGID); in bpf_uprobe_multi_link_attach()
3573 if (type != PIDTYPE_PID && type != PIDTYPE_TGID) in bpf_send_signal_task()

12