Home
last modified time | relevance | path

Searched refs:pid (Results 501 - 525 of 4829) sorted by relevance

1...<<21222324252627282930>>...194

/kernel/linux/linux-6.6/tools/testing/selftests/nci/
H A Dnci_dev.c160 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 Dvas-api.c64 * 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 Dcxd2880-spi.c36 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 Dcxd2880-spi.c36 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 Dmount.c128 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 Dskew_consistency.c45 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 Ddscr_inherit_test.c23 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 Dlru_bug.c17 int pid = 0; variable
25 if (pid == bpf_get_current_task_btf()->pid) in printk()
43 pid = current->pid; in nanosleep()
H A Dtest_ringbuf_map_key.c11 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 Ddscr_inherit_test.c23 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 Dskew_consistency.c45 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 DIt_mnt_container_005.cpp65 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 DIt_time_container_001.cpp59 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 DIt_pid_container_026.cpp43 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 Dsignal_test_030.cpp43 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 Dfflush-exit.c21 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 Dmsgrcv05.c39 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 Dfork06.c55 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 Dfork11.c23 * 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 D1-2.c9 * 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 Dfortify_sendto_chk_test.cpp36 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 Dbuffer_overflow.c65 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 Dbuffer_underflow.c65 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 Dinvalid_free_left.c61 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 Duse_after_free.c60 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()

Completed in 13 milliseconds

1...<<21222324252627282930>>...194