/kernel/linux/linux-6.6/mm/ |
H A D | process_vm_access.c | 139 * @pid: PID of process to read/write from/to 150 static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, in process_vm_rw_core() argument 196 task = find_get_task_by_vpid(pid); in process_vm_rw_core() 241 * @pid: PID of process to read/write from/to 253 static ssize_t process_vm_rw(pid_t pid, in process_vm_rw() argument 283 rc = process_vm_rw_core(pid, &iter, iov_r, riovcnt, flags, vm_write); in process_vm_rw() 291 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, in SYSCALL_DEFINE6() 295 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 0); in SYSCALL_DEFINE6() 298 SYSCALL_DEFINE6(process_vm_writev, pid_t, pid, in SYSCALL_DEFINE6() 303 return process_vm_rw(pid, lve in SYSCALL_DEFINE6() [all...] |
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl31.c | 59 static pid_t pid; variable 113 pid = getpid(); in setup() 116 if (pid != getsid(0)) { in setup() 134 /* get original pid info */ in setup() 138 "fcntl get original pid info failed"); in setup() 155 TEST(fcntl(test_fd, F_SETOWN, pid)); in setown_pid_test() 201 tst_own_ex.pid = tst_syscall(__NR_gettid); in setownex_tid_test() 218 tst_own_ex.pid = pid; in setownex_pid_test() 236 tst_own_ex.pid in setownex_pgrp_test() [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/msgstress/ |
H A D | msgstress03.c | 81 int i, j, ok, pid, free_pids; in main() local 163 if ((pid = FORK_OR_VFORK()) < 0) { in main() 169 if (pid == 0) { in main() 173 pidarray[i] = pid; in main() 210 int id, pid; in dotest() local 224 if ((pid = FORK_OR_VFORK()) < 0) { in dotest() 233 if (pid == 0) in dotest() 236 mykid = pid; in dotest()
|
/third_party/musl/libc-test/src/functional/ |
H A D | dl_multithread_lock.c | 37 int pid = getpid(); in check_loaded() local 39 sprintf(path, "/proc/%d/maps", pid); in check_loaded() 92 pid_t pid = fork(); in CallBack003() local 93 if (pid > 0) { in CallBack003() 96 pid_t waitpid_for_pind = waitpid(pid, &status, options); in CallBack003() 97 if (waitpid_for_pind != pid) { in CallBack003() 98 t_error("%s waitpid get pid is %d are not want %d\n", __func__, waitpid_for_pind, pid); in CallBack003() 103 } else if (pid == 0) { in CallBack003()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_wait.rs | 99 let pid = Pid::from_raw(1); in test_waitstatus_from_raw() 101 WaitStatus::from_raw(pid, 0x0002), in test_waitstatus_from_raw() 102 Ok(WaitStatus::Signaled(pid, Signal::SIGINT, false)) in test_waitstatus_from_raw() 105 WaitStatus::from_raw(pid, 0x0200), in test_waitstatus_from_raw() 106 Ok(WaitStatus::Exited(pid, 2)) in test_waitstatus_from_raw() 108 assert_eq!(WaitStatus::from_raw(pid, 0x7f7f), Err(Errno::EINVAL)); in test_waitstatus_from_raw() 119 assert_eq!(status.pid(), Some(child)); in test_waitstatus_pid() 138 assert_eq!(status.pid(), Some(child)); in test_waitid_pid()
|
/kernel/linux/linux-5.10/arch/um/kernel/ |
H A D | reboot.c | 22 int pid; in kill_off_processes() local 31 pid = t->mm->context.id.u.pid; in kill_off_processes() 33 os_kill_ptraced_process(pid, 1); in kill_off_processes()
|
/kernel/linux/linux-5.10/arch/sh/mm/ |
H A D | asids-debugfs.c | 36 int pid = p->pid; in asids_seq_show() local 38 if (unlikely(!pid)) in asids_seq_show() 42 seq_printf(file, "%5d : %04lx\n", pid, in asids_seq_show()
|
/kernel/linux/linux-5.10/arch/um/kernel/skas/ |
H A D | process.c | 20 int pid; in start_kernel_proc() local 23 pid = os_getpid(); in start_kernel_proc() 25 cpu_tasks[0].pid = pid; in start_kernel_proc()
|
/kernel/linux/linux-5.10/arch/x86/um/os-Linux/ |
H A D | tls.c | 48 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument 52 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area() 59 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument 63 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/ |
H A D | tm-poison.c | 29 int cpu, pid; in tm_poison_test() local 46 pid = fork(); in tm_poison_test() 47 if (!pid) { in tm_poison_test() 172 kill(pid, SIGKILL); in tm_poison_test()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | fork_cleanup_test.c | 44 pid_t pid; in fork_cleanup() local 64 pid = fork(); in fork_cleanup() 65 if (pid == 0) in fork_cleanup() 69 FAIL_IF(wait_for_child(pid)); in fork_cleanup()
|
/kernel/linux/linux-6.6/arch/um/kernel/ |
H A D | reboot.c | 22 int pid; in kill_off_processes() local 31 pid = t->mm->context.id.u.pid; in kill_off_processes() 33 os_kill_ptraced_process(pid, 1); in kill_off_processes()
|
/kernel/linux/linux-6.6/arch/um/kernel/skas/ |
H A D | process.c | 20 int pid; in start_kernel_proc() local 23 pid = os_getpid(); in start_kernel_proc() 25 cpu_tasks[0].pid = pid; in start_kernel_proc()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | thread_map.h | 14 struct perf_thread_map *thread_map__new_by_pid(pid_t pid); 18 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 21 struct perf_thread_map *thread_map__new_str(const char *pid, 29 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | if_pppol2tp.h | 28 __kernel_pid_t pid; /* pid that owns the fd. member 42 __kernel_pid_t pid; /* pid that owns the fd. member 56 __kernel_pid_t pid; /* pid that owns the fd. member 67 __kernel_pid_t pid; /* pid that owns the fd. member
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | if_pppol2tp.h | 28 __kernel_pid_t pid; /* pid that owns the fd. member 42 __kernel_pid_t pid; /* pid that owns the fd. member 56 __kernel_pid_t pid; /* pid that owns the fd. member 67 __kernel_pid_t pid; /* pid that owns the fd. member
|
/kernel/linux/linux-6.6/arch/x86/um/os-Linux/ |
H A D | tls.c | 48 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument 52 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area() 59 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument 63 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | thread_map.h | 12 struct perf_thread_map *thread_map__new_by_pid(pid_t pid); 16 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 19 struct perf_thread_map *thread_map__new_str(const char *pid, 27 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | fork_cleanup_test.c | 44 pid_t pid; in fork_cleanup() local 64 pid = fork(); in fork_cleanup() 65 if (pid == 0) in fork_cleanup() 69 FAIL_IF(wait_for_child(pid)); in fork_cleanup()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/tm/ |
H A D | tm-poison.c | 28 int cpu, pid; in tm_poison_test() local 46 pid = fork(); in tm_poison_test() 47 if (!pid) { in tm_poison_test() 172 kill(pid, SIGKILL); in tm_poison_test()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | task_under_cgroup.c | 15 pid_t pid; in test_task_under_cgroup() local 37 pid = fork(); in test_task_under_cgroup() 38 if (pid == 0) in test_task_under_cgroup() 41 ret = (pid == -1); in test_task_under_cgroup()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | if_pppol2tp.h | 26 __kernel_pid_t pid; member 33 __kernel_pid_t pid; member 40 __kernel_pid_t pid; member 47 __kernel_pid_t pid; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | if_pppol2tp.h | 26 __kernel_pid_t pid; member 33 __kernel_pid_t pid; member 40 __kernel_pid_t pid; member 47 __kernel_pid_t pid; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | if_pppol2tp.h | 13 __kernel_pid_t pid; member 20 __kernel_pid_t pid; member 27 __kernel_pid_t pid; member 34 __kernel_pid_t pid; member
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_container_001.cpp | 57 auto pid = clone(ChildFunc, stackTop, SIGCHLD, &arg); in ItContainer001() local 59 ASSERT_NE(pid, -1); in ItContainer001() 61 ret = waitpid(pid, &status, 0); in ItContainer001() 64 ASSERT_EQ(ret, pid); in ItContainer001()
|