| /linux/include/net/ |
| H A D | scm.h | 45 DECLARE_PIDS(pid, PIDTYPE_TGID); /* Skb credentials by pid type */ 96 scm->pid[PIDTYPE_TGID] = get_pid(task_tgid(current)); in scm_send()
|
| /linux/include/linux/ |
| H A D | pid_types.h | 9 PIDTYPE_TGID, enumerator
|
| H A D | coredump.h | 56 DECLARE_PIDS(pid, PIDTYPE_TGID);
|
| H A D | pid.h | 355 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); in task_tgid_nr_ns() 360 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, NULL); in task_tgid_vnr()
|
| /linux/net/core/ |
| H A D | scm.c | 172 scm->pid[PIDTYPE_TGID] = pid; in scm_replace_pid() 222 if (!p->pid[PIDTYPE_TGID] || in __scm_send() 223 pid_vnr(p->pid[PIDTYPE_TGID]) != creds.pid) { in __scm_send() 598 scm_pidfd_recv(msg, scm, PIDTYPE_TGID, SCM_PIDFD); in scm_recv_unix()
|
| /linux/fs/ |
| H A D | fcntl.c | 161 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() 928 if (type <= PIDTYPE_TGID) { in send_sigio() 974 if (type <= PIDTYPE_TGID) { in send_sigurg()
|
| H A D | pidfs.c | 702 task = pid_task(pid, PIDTYPE_TGID); in pidfs_file_release() 709 do_send_sig_info(SIGKILL, SEND_SIG_PRIV, task, PIDTYPE_TGID); in pidfs_file_release()
|
| H A D | coredump.c | 635 if (cp->pid[PIDTYPE_TGID]) { in umh_coredump_setup() 638 pidfs_file = pidfs_alloc_file(cp->pid[PIDTYPE_TGID], 0); in umh_coredump_setup()
|
| /linux/net/unix/ |
| H A D | af_unix.h | 15 DECLARE_PIDS(pid, PIDTYPE_TGID); /* skb credentials by pid type */
|
| H A D | af_unix.c | 740 DECLARE_PIDS(peer_pid, PIDTYPE_TGID); 2007 scm_set_cred(scm, UNIXCB(skb).pid[PIDTYPE_TGID], UNIXCB(skb).uid, UNIXCB(skb).gid); in unix_skb_to_scm() 2027 if (UNIXCB(skb).pid[PIDTYPE_TGID]) in unix_maybe_add_creds() 2055 return UNIXCB(skb).pid[PIDTYPE_TGID] == scm->pid[PIDTYPE_TGID] && in unix_skb_scm_eq()
|
| /linux/tools/testing/selftests/sched/ |
| H A D | cs_prctl_test.c | 62 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/net/bluetooth/ |
| H A D | af_bluetooth.c | 164 sk->sk_peer_pid[PIDTYPE_TGID] = get_pid(task_tgid(current)); in bt_sock_alloc() 238 old_pid = sk->sk_peer_pid[PIDTYPE_TGID]; in bt_accept_enqueue() 240 sk->sk_peer_pid[PIDTYPE_TGID] = get_pid(parent->sk_peer_pid[PIDTYPE_TGID]); in bt_accept_enqueue()
|
| H A D | hci_sock.c | 287 if (!sk->sk_peer_pid[PIDTYPE_TGID]) { in hci_sock_copy_creds() 289 if (bt_sk(sk)->parent && bt_sk(sk)->parent->sk_peer_pid[PIDTYPE_TGID]) in hci_sock_copy_creds() 296 if (creds->pid == pid_vnr(sk->sk_peer_pid[PIDTYPE_TGID])) in hci_sock_copy_creds() 301 creds->pid = pid_vnr(sk->sk_peer_pid[PIDTYPE_TGID]); in hci_sock_copy_creds()
|
| /linux/kernel/time/ |
| H A D | posix-cpu-timers.c | 85 * of the process so that pid_task(pid, PIDTYPE_TGID) can be in pid_for_clock() 94 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() 705 * for process shared timers (type = PIDTYPE_TGID) as long as tsk::signal::flags in cpu_timer_fire() 718 return type == PIDTYPE_TGID && !(tsk->signal->flags & SIGNAL_GROUP_EXIT); in posix_cpu_timer_set() 981 send_signal_locked(SIGXCPU, SEND_SIG_PRIV, tsk, PIDTYPE_TGID); in stop_process_timers() 995 send_signal_locked(signo, SEND_SIG_PRIV, current, PIDTYPE_TGID); in check_cpu_itimer() 1069 send_signal_locked(signo, SEND_SIG_PRIV, tsk, PIDTYPE_TGID); in check_process_timers()
|
| /linux/kernel/ |
| H A D | signal.c | 637 *type = PIDTYPE_TGID; in dequeue_signal() 1163 if (type > PIDTYPE_TGID) { in __send_signal_locked() 1516 return kill_pid_info_type(sig, info, pid, PIDTYPE_TGID); in kill_pid_info() 1597 ret = __send_signal_locked(sig, &info, p, PIDTYPE_TGID, false); in kill_pid_usb_asyncio() 2336 __send_signal_locked(sig, &info, tsk->parent, PIDTYPE_TGID, false); in do_notify_parent() 2406 send_signal_locked(SIGCHLD, &info, parent, PIDTYPE_TGID); in do_notify_parent_cldstop() 4109 type = PIDTYPE_TGID; in do_pidfd_send_signal() 4127 if ((task_pid(current) != pid || type > PIDTYPE_TGID) && in do_pidfd_send_signal() 4175 pid = get_task_pid(current, PIDTYPE_TGID); in SYSCALL_DEFINE4() 4176 type = PIDTYPE_TGID; in SYSCALL_DEFINE4() [all...] |
| H A D | pid.c | 635 type = PIDTYPE_TGID; in pidfd_get_task() 642 type = PIDTYPE_TGID; in pidfd_get_task()
|
| H A D | exit.c | 145 detach_pid(post->pids, p, PIDTYPE_TGID); in __unhash_process() 726 PIDTYPE_TGID); in forget_original_parent() 1649 target = pid_task(wo->wo_pid, PIDTYPE_TGID); in do_wait_pid()
|
| H A D | fork.c | 1946 if (!(flags & PIDFD_THREAD) && !pid_has_task(pid, PIDTYPE_TGID)) in pidfd_prepare() 2528 init_task_pid(p, PIDTYPE_TGID, pid); in copy_process() 2552 attach_pid(p, PIDTYPE_TGID); in copy_process()
|
| /linux/init/ |
| H A D | init_task.c | 47 [PIDTYPE_TGID] = &init_struct_pid,
|
| /linux/fs/notify/dnotify/ |
| H A D | dnotify.c | 369 __f_setown(filp, task_pid(current), PIDTYPE_TGID, 0); in fcntl_dirnotify()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | uapi.c | 118 struct pid *pid = get_task_pid(current, PIDTYPE_TGID); in tegra_drm_ioctl_channel_open()
|
| /linux/include/linux/sched/ |
| H A D | signal.h | 720 return task->signal->pids[PIDTYPE_TGID]; in task_tgid()
|
| /linux/ipc/ |
| H A D | mqueue.c | 821 task = pid_task(info->notify_owner, PIDTYPE_TGID); in __do_notify() 825 &sig_i, task, PIDTYPE_TGID); in __do_notify()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_file.c | 1030 task = pid_task(pid, PIDTYPE_TGID); in drm_file_err()
|
| /linux/include/trace/events/ |
| H A D | landlock.h | 1040 peer_pid = READ_ONCE(peer->sk_peer_pid[PIDTYPE_TGID]);
|