/kernel/linux/linux-6.6/tools/testing/selftests/nci/ |
H A D | nci_dev.c | 160 static int send_get_nfc_family(int sd, __u32 pid) in send_get_nfc_family() argument 171 return send_cmd_mt_nla(sd, GENL_ID_CTRL, pid, CTRL_CMD_GETFAMILY, in send_get_nfc_family() 176 static int get_family_id(int sd, __u32 pid, __u32 *event_group) in get_family_id() argument 189 rc = send_get_nfc_family(sd, pid); in get_family_id() 251 static int get_nci_devid(int sd, __u16 fid, __u32 pid, int dev_id, struct msgtemplate *msg) in get_nci_devid() argument 255 rc = send_cmd_with_idx(sd, fid, pid, NFC_CMD_GET_DEVICE, dev_id); in get_nci_devid() 304 __u32 pid; in FIXTURE() local 417 self->pid = getpid(); in FIXTURE_SETUP() 418 self->fid = get_family_id(self->sd, self->pid, &event_group); in FIXTURE_SETUP() 431 rc = get_nci_devid(self->sd, self->fid, self->pid, sel in FIXTURE_SETUP() 581 start_polling(int dev_idx, int proto, int virtual_fd, int sd, int fid, int pid) start_polling() argument 605 stop_polling(int dev_idx, int virtual_fd, int sd, int fid, int pid) stop_polling() argument 638 get_taginfo(int dev_idx, int sd, int fid, int pid) get_taginfo() argument 719 connect_tag(int dev_idx, int virtual_fd, int sd, int fid, int pid) connect_tag() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/book3s/ |
H A D | vas-api.c | 64 * Take reference to pid and mm 70 * it exits. So take reference to its pid and release it in get_vas_user_win_ref() 72 * Acquire a reference to the task's pid to make sure in get_vas_user_win_ref() 73 * pid will not be re-used - needed only for multithread in get_vas_user_win_ref() 76 task_ref->pid = get_task_pid(current, PIDTYPE_PID); in get_vas_user_win_ref() 82 put_pid(task_ref->pid); in get_vas_user_win_ref() 83 pr_err("pid(%d): mm_struct is not found\n", in get_vas_user_win_ref() 84 current->pid); in get_vas_user_win_ref() 107 struct task_struct **tskp, struct pid **pidp) in ref_get_pid_and_task() 110 struct pid *pi in ref_get_pid_and_task() local 155 struct pid *pid; vas_update_csb() local [all...] |
/kernel/linux/linux-5.10/drivers/media/spi/ |
H A D | cxd2880-spi.c | 36 u16 pid; member 200 u16 pid = 0; in cxd2880_set_pid_filter() local 219 pid = cfg->pid_config[i].pid; in cxd2880_set_pid_filter() 221 data[1 + (i * 2)] = (pid >> 8) | 0x20; in cxd2880_set_pid_filter() 222 data[2 + (i * 2)] = pid & 0xff; in cxd2880_set_pid_filter() 252 tmpcfg.pid_config[0].pid = 0x1fff; in cxd2880_update_pid_filter() 347 if (feed->pid == 0x2000) { in cxd2880_start_feed() 353 pr_err("update pid filter failed\n"); in cxd2880_start_feed() 369 cfgtmp.pid_config[i].pid in cxd2880_start_feed() [all...] |
/kernel/linux/linux-6.6/drivers/media/spi/ |
H A D | cxd2880-spi.c | 36 u16 pid; member 200 u16 pid = 0; in cxd2880_set_pid_filter() local 219 pid = cfg->pid_config[i].pid; in cxd2880_set_pid_filter() 221 data[1 + (i * 2)] = (pid >> 8) | 0x20; in cxd2880_set_pid_filter() 222 data[2 + (i * 2)] = pid & 0xff; in cxd2880_set_pid_filter() 252 tmpcfg.pid_config[0].pid = 0x1fff; in cxd2880_update_pid_filter() 347 if (feed->pid == 0x2000) { in cxd2880_start_feed() 353 pr_err("update pid filter failed\n"); in cxd2880_start_feed() 369 cfgtmp.pid_config[i].pid in cxd2880_start_feed() [all...] |
/third_party/libfuse/lib/ |
H A D | mount.c | 128 int pid = fork(); in fuse_mount_version() local 129 if (!pid) { in fuse_mount_version() 133 } else if (pid != -1) in fuse_mount_version() 134 waitpid(pid, NULL, 0); in fuse_mount_version() 266 int pid; in fuse_kern_unmount() local 298 pid = fork(); in fuse_kern_unmount() 299 if(pid == -1) in fuse_kern_unmount() 302 if(pid == 0) { in fuse_kern_unmount() 309 waitpid(pid, NULL, 0); in fuse_kern_unmount() 314 int fds[2], pid; in setup_auto_unmount() local 374 int fds[2], pid; fuse_mount_fusermount() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | skew_consistency.c | 45 pid_t pid; in main() local 50 pid = fork(); in main() 51 if (!pid) in main() 57 while (pid != waitpid(pid, &ret, WNOHANG)) { in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_inherit_test.c | 23 pid_t pid; in dscr_inherit() local 42 pid = fork(); in dscr_inherit() 43 if (pid == -1) { in dscr_inherit() 46 } else if (pid) { in dscr_inherit() 49 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | lru_bug.c | 17 int pid = 0; variable 25 if (pid == bpf_get_current_task_btf()->pid) in printk() 43 pid = current->pid; in nanosleep()
|
H A D | test_ringbuf_map_key.c | 11 int pid; member 29 int pid = 0; variable 41 if (cur_pid != pid) in test_ringbuf_mem_map_key() 48 sample->pid = pid; in test_ringbuf_mem_map_key()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_inherit_test.c | 23 pid_t pid; in dscr_inherit() local 42 pid = fork(); in dscr_inherit() 43 if (pid == -1) { in dscr_inherit() 46 } else if (pid) { in dscr_inherit() 49 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit()
|
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | skew_consistency.c | 45 pid_t pid; in main() local 50 pid = fork(); in main() 51 if (!pid) in main() 57 while (pid != waitpid(pid, &ret, WNOHANG)) { in main()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_mnt_container_005.cpp | 65 auto pid = fork(); in ItMntContainer005() local 66 ASSERT_TRUE(pid != -1); in ItMntContainer005() 67 if (pid == 0) { in ItMntContainer005() 71 auto ret = waitpid(pid, &status, 0); in ItMntContainer005() 72 ASSERT_EQ(ret, pid); in ItMntContainer005()
|
H A D | It_time_container_001.cpp | 59 auto pid = clone(childFunc, stackTop, CLONE_NEWTIME | SIGCHLD, &arg); in ItTimeContainer001() local 60 ASSERT_TRUE(pid != -1); in ItTimeContainer001() 62 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in ItTimeContainer001() 66 ret = waitpid(pid, &status, 0); in ItTimeContainer001() 67 ASSERT_EQ(ret, pid); in ItTimeContainer001()
|
H A D | It_pid_container_026.cpp | 43 char *containerType = "pid"; in ItPidContainer026() 55 auto pid = clone(childFunc, stackTop, CLONE_NEWPID | SIGCHLD, NULL); in ItPidContainer026() local 56 ASSERT_TRUE(pid != -1); in ItPidContainer026() 58 auto linkBuffer2 = ReadlinkContainer(pid, containerType); in ItPidContainer026() 62 ret = waitpid(pid, &status, 0); in ItPidContainer026() 63 ASSERT_EQ(ret, pid); in ItPidContainer026()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
H A D | signal_test_030.cpp | 43 int pid; in TestCase() local 50 pid = fork(); in TestCase() 51 if (pid < 0) { in TestCase() 54 } else if (pid == 0) { in TestCase() 69 ret = kill(pid, SIGUSR1); in TestCase()
|
/third_party/musl/libc-test/src/regression/ |
H A D | fflush-exit.c | 21 int fd, pid, status; in main() local 25 ASSERT((pid = fork()) >= 0); in main() 26 if (pid == 0) { in main() 32 ASSERT(waitpid(pid, &status, 0) == pid); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
H A D | msgrcv05.c | 39 int pid; in do_test() local 41 pid = SAFE_FORK(); in do_test() 42 if (pid == 0) { in do_test() 46 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in do_test() 47 SAFE_KILL(pid, SIGHUP); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork06.c | 55 int i, pid, status, childpid, succeed, fail; in main() local 69 pid = fork(); in main() 70 if (pid == -1) { in main() 75 if (pid == 0) in main() 79 if (pid != childpid) in main() 80 tst_resm(TFAIL, "pid from wait %d", childpid); in main()
|
H A D | fork11.c | 23 * Test that parent gets a pid from each child when doing wait 54 int i, pid, cpid, status; in main() local 66 pid = fork(); in main() 67 if (pid == 0) in main() 70 if (pid > 0) { /* parent */ in main() 72 if (cpid != pid) in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/ |
H A D | 1-2.c | 9 * specified by pid when the process specified by pid is not the calling 13 * pid of the child. 44 int pid; in main() local 59 pid = fork(); in main() 60 if (pid == 0) { in main() 80 } else if (pid > 0) { in main() 85 if (kill(pid, SIGTOTEST) != 0) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/ |
H A D | fortify_sendto_chk_test.cpp | 36 int pid = fork(); in HWTEST_F() local 37 if (pid == 0) { in HWTEST_F() 40 } else if (pid > 0) { in HWTEST_F() 41 waitpid(pid, &status, WUNTRACED); in HWTEST_F() 44 kill(pid, SIGCONT); in HWTEST_F()
|
/third_party/musl/libc-test/src/gwp_asan/ |
H A D | buffer_overflow.c | 65 pid_t pid = fork();
in main() local 66 if (pid < 0) {
in main() 68 } else if (pid == 0) { // child process
in main() 72 if (waitpid(pid, &status, 0) != pid) {
in main()
|
H A D | buffer_underflow.c | 65 pid_t pid = fork();
in main() local 66 if (pid < 0) {
in main() 68 } else if (pid == 0) { // child process
in main() 72 if (waitpid(pid, &status, 0) != pid) {
in main()
|
H A D | invalid_free_left.c | 61 pid_t pid = fork();
in main() local 62 if (pid < 0) {
in main() 64 } else if (pid == 0) { // child process
in main() 68 if (waitpid(pid, &status, 0) != pid) {
in main()
|
H A D | use_after_free.c | 60 pid_t pid = fork();
in main() local 61 if (pid < 0) {
in main() 63 } else if (pid == 0) { // child process
in main() 67 if (waitpid(pid, &status, 0) != pid) {
in main()
|