Home
last modified time | relevance | path

Searched refs:pid (Results 651 - 675 of 4829) sorted by relevance

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

/third_party/ltp/testcases/kernel/syscalls/waitpid/
H A Dwaitpid04.c62 int pid, status, ret; in main() local
75 ret = waitpid(pid, &status, WNOHANG); in main()
96 pid = 1; in main()
97 ret = waitpid(pid, &status, WUNTRACED); in main()
115 ret = waitpid(pid, &status, INVAL_FLAG); in main()
H A Dwaitpid06.c28 * Check proper functioning of waitpid with pid = -1 and arg = 0
35 pid_t pid; in do_child_1() local
42 pid = SAFE_FORK(); in do_child_1()
43 if (pid == 0) in do_child_1()
46 fork_kid_pid[i] = pid; in do_child_1()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D17-5.c42 pid_t pid = getpid(); in main() local
48 rc = sched_getparam(pid, &param); in main()
54 rc = sched_getscheduler(pid); in main()
65 rc = sched_getparam(pid, &param); in main()
70 rc = sched_getscheduler(pid); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/
H A D3-2.c26 int pid, slepts; in main() local
34 if ((pid = fork()) < 0) { in main()
37 } else if (pid == 0) { in main()
57 if (kill(pid, SIGSTOP) != 0) { in main()
62 if (kill(pid, SIGCONT) != 0) { in main()
/third_party/musl/libc-test/src/gwp_asan/
H A Dgwp_asan_smoke_test.c91 pid_t pid = fork(); in main() local
92 if (pid < 0) { in main()
94 } else if (pid == 0) { // child process in main()
98 if (waitpid(pid, &status, 0) != pid) { in main()
/third_party/toybox/toys/other/
H A Doneit.c66 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; in oneit_main() local
83 pid = XVFORK(); in oneit_main()
84 if (pid) { in oneit_main()
86 // pid 1 reaps zombies until it gets its child, then halts system. in oneit_main()
90 while (pid != wait(&i)) if (FLAG(3)) i = write(4, &pid, 4); in oneit_main()
/kernel/linux/linux-5.10/drivers/android/
H A Dbinder_alloc.c83 alloc->pid, new_buffer_size, new_buffer); in binder_insert_free_buffer()
192 "%d: %s pages %pK-%pK\n", alloc->pid, in binder_update_page_range()
222 alloc->pid); in binder_update_page_range()
253 alloc->pid, page_addr); in binder_update_page_range()
263 alloc->pid, user_page_addr); in binder_update_page_range()
341 static void debug_low_async_space_locked(struct binder_alloc *alloc, int pid) in debug_low_async_space_locked() argument
348 * than keeping a map per pid. in debug_low_async_space_locked()
358 if (buffer->pid != pid) in debug_low_async_space_locked()
367 * Warn if this pid ha in debug_low_async_space_locked()
377 binder_alloc_new_buf_locked( struct binder_alloc *alloc, size_t data_size, size_t offsets_size, size_t extra_buffers_size, int is_async, int pid) binder_alloc_new_buf_locked() argument
566 binder_alloc_new_buf(struct binder_alloc *alloc, size_t data_size, size_t offsets_size, size_t extra_buffers_size, int is_async, int pid) binder_alloc_new_buf() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/dvb-core/
H A Ddvb_demux.c418 u16 pid = ts_pid(buf); in dvb_dmx_swfilter_packet() local
452 if ((feed->pid != pid) && (feed->pid != 0x2000)) in dvb_dmx_swfilter_packet()
457 pid, buf[1]); in dvb_dmx_swfilter_packet()
462 } else /* if TEI bit is set, pid may be wrong- skip pkt counter */ in dvb_dmx_swfilter_packet()
465 if (pid < MAX_PID) { in dvb_dmx_swfilter_packet()
467 demux->cnt_storage[pid] = in dvb_dmx_swfilter_packet()
468 (demux->cnt_storage[pid] + 1) & 0xf; in dvb_dmx_swfilter_packet()
470 if ((buf[3] & 0xf) != demux->cnt_storage[pid]) { in dvb_dmx_swfilter_packet()
697 dmx_ts_feed_set(struct dmx_ts_feed *ts_feed, u16 pid, int ts_type, enum dmx_ts_pes pes_type, ktime_t timeout) dmx_ts_feed_set() argument
907 dmx_section_feed_set(struct dmx_section_feed *feed, u16 pid, int check_crc) dmx_section_feed_set() argument
[all...]
/kernel/linux/linux-6.6/drivers/android/
H A Dbinder_alloc.c83 alloc->pid, new_buffer_size, new_buffer); in binder_insert_free_buffer()
192 "%d: %s pages %pK-%pK\n", alloc->pid, in binder_update_page_range()
222 alloc->pid); in binder_update_page_range()
253 alloc->pid, page_addr); in binder_update_page_range()
263 alloc->pid, user_page_addr); in binder_update_page_range()
326 static bool debug_low_async_space_locked(struct binder_alloc *alloc, int pid) in debug_low_async_space_locked() argument
333 * than keeping a map per pid. in debug_low_async_space_locked()
343 if (buffer->pid != pid) in debug_low_async_space_locked()
352 * Warn if this pid ha in debug_low_async_space_locked()
368 binder_alloc_new_buf_locked( struct binder_alloc *alloc, size_t data_size, size_t offsets_size, size_t extra_buffers_size, int is_async, int pid) binder_alloc_new_buf_locked() argument
561 binder_alloc_new_buf(struct binder_alloc *alloc, size_t data_size, size_t offsets_size, size_t extra_buffers_size, int is_async, int pid) binder_alloc_new_buf() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/dvb-core/
H A Ddvb_demux.c408 u16 pid = ts_pid(buf); in dvb_dmx_swfilter_packet() local
442 if ((feed->pid != pid) && (feed->pid != 0x2000)) in dvb_dmx_swfilter_packet()
447 pid, buf[1]); in dvb_dmx_swfilter_packet()
452 } else /* if TEI bit is set, pid may be wrong- skip pkt counter */ in dvb_dmx_swfilter_packet()
455 if (pid < MAX_PID) { in dvb_dmx_swfilter_packet()
457 demux->cnt_storage[pid] = in dvb_dmx_swfilter_packet()
458 (demux->cnt_storage[pid] + 1) & 0xf; in dvb_dmx_swfilter_packet()
460 if ((buf[3] & 0xf) != demux->cnt_storage[pid]) { in dvb_dmx_swfilter_packet()
687 dmx_ts_feed_set(struct dmx_ts_feed *ts_feed, u16 pid, int ts_type, enum dmx_ts_pes pes_type, ktime_t timeout) dmx_ts_feed_set() argument
897 dmx_section_feed_set(struct dmx_section_feed *feed, u16 pid, int check_crc) dmx_section_feed_set() argument
[all...]
/third_party/eudev/src/udev/
H A Dudevd.c122 pid_t pid; member
150 hashmap_remove(workers, UINT_TO_PTR(worker->pid)); in worker_free()
169 static int worker_new(struct worker **ret, struct udev *udev, struct udev_monitor *worker_monitor, pid_t pid) { in worker_new() argument
176 assert(pid > 1); in worker_new()
187 worker->pid = pid; in worker_new()
193 r = hashmap_put(workers, UINT_TO_PTR(pid), worker); in worker_new()
226 pid_t pid; in worker_spawn() local
236 pid = fork(); in worker_spawn()
237 switch (pid) { in worker_spawn()
931 pid_t pid; handle_signal() local
1249 pid_t pid; main() local
[all...]
/third_party/toybox/lib/
H A Dxwrap.c195 pid_t __attribute__((returns_twice)) xvforkwrap(pid_t pid) in xvforkwrap() argument
197 if (pid == -1) perror_exit("vfork"); in xvforkwrap()
200 if (!pid) toys.stacktop = 0; in xvforkwrap()
202 return pid; in xvforkwrap()
226 // return: pid of child process
229 int cestnepasun[4], pid; in xpopen_both() local
233 if (pipes) for (pid = 0; pid < 2; pid++) { in xpopen_both()
234 if (pipes[pid] ! in xpopen_both()
313 xwaitpid(pid_t pid) xwaitpid() argument
322 xpclose_both(pid_t pid, int *pipes) xpclose_both() argument
335 int pipes[2], pid; xpopen() local
345 xpclose(pid_t pid, int pipe) xpclose() argument
786 pid_t pid; xpidfile() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-stack.c35 int pid; in tm_signal_stack() local
39 pid = fork(); in tm_signal_stack()
40 if (pid < 0) in tm_signal_stack()
43 if (pid) { /* Parent */ in tm_signal_stack()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-stack.c35 int pid; in tm_signal_stack() local
40 pid = fork(); in tm_signal_stack()
41 if (pid < 0) in tm_signal_stack()
44 if (pid) { /* Parent */ in tm_signal_stack()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_uts_container_001.cpp46 auto pid = CloneWrapper(ChildFunc, CLONE_NEWUTS, &arg); in ItUtsContainer001() local
47 ASSERT_NE(pid, -1); in ItUtsContainer001()
50 ret = waitpid(pid, &status, 0); in ItUtsContainer001()
51 ASSERT_EQ(ret, pid); in ItUtsContainer001()
/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
H A Dclock_test_005.cpp38 pid_t pid = 0; in ClockTest() local
41 ret = clock_getcpuclockid(pid, &clockid); in ClockTest()
44 pid = 65; // 65, non existent process id. in ClockTest()
45 ret = clock_getcpuclockid(pid, &clockid); in ClockTest()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_056.cpp36 pid_t pid; in TestCase() local
41 ret = posix_spawn(&pid, "/bin/tftp", NULL, NULL, argv1, NULL); in TestCase()
44 ret = waitpid(pid, &status, 0); in TestCase()
45 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
H A Dprocess_test_057.cpp36 pid_t pid; in TestCase() local
41 ret = posix_spawnp(&pid, "tftp", NULL, NULL, argv1, NULL); in TestCase()
44 ret = waitpid(pid, &status, 0); in TestCase()
45 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns06.c17 static void child_func(int pid) in child_func() argument
27 TST_EXP_FAIL(kill(pid, SIGKILL), ESRCH); in child_func()
36 pid_t pid = getpid(); in run() local
39 child_func(pid); in run()
/third_party/ltp/testcases/kernel/syscalls/getsid/
H A Dgetsid01.c11 * Verify that session IDs returned by getsid() (with argument pid=0)
22 pid_t pid, c_sid; in run() local
32 pid = SAFE_FORK(); in run()
34 if (pid == 0) { in run()
43 SAFE_WAITPID(pid, NULL, 0); in run()
/third_party/musl/libc-test/src/functionalext/supplement/exit/exit_gtest/
H A Dexit_abort_test.cpp19 pid_t pid = fork(); in HWTEST_F() local
20 if (pid == -1) { in HWTEST_F()
22 } else if (pid == 0) { in HWTEST_F()
26 waitpid(pid, &status, 0); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/tty/
H A Dtty_jobctrl.c35 struct pid *pgrp, *tty_pgrp; in __tty_check_change()
172 void session_clear_tty(struct pid *session) in session_clear_tty()
196 struct pid *tty_pgrp = NULL; in tty_signal_session_leader()
270 struct pid *tty_pgrp = tty_get_pgrp(tty); in disassociate_ctty()
281 struct pid *old_pgrp; in disassociate_ctty()
311 * cause pid memleak. Release current->signal->tty_old_pgrp in disassociate_ctty()
401 * tty_get_pgrp - return a ref counted pgrp pid
404 * Returns a refcounted instance of the pid struct for the process
407 struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
410 struct pid *pgr in tty_get_pgrp()
454 struct pid *pid; tiocgpgrp() local
[all...]
/kernel/linux/linux-6.6/drivers/tty/
H A Dtty_jobctrl.c36 struct pid *pgrp, *tty_pgrp; in __tty_check_change()
175 void session_clear_tty(struct pid *session) in session_clear_tty()
200 struct pid *tty_pgrp = NULL; in tty_signal_session_leader()
277 struct pid *tty_pgrp = tty_get_pgrp(tty); in disassociate_ctty()
289 struct pid *old_pgrp; in disassociate_ctty()
320 * cause pid memleak. Release current->signal->tty_old_pgrp in disassociate_ctty()
415 * tty_get_pgrp - return a ref counted pgrp pid
418 * Returns a refcounted instance of the pid struct for the process
421 struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp()
424 struct pid *pgr in tty_get_pgrp()
468 struct pid *pid; tiocgpgrp() local
[all...]
/kernel/linux/linux-5.10/arch/mips/mm/
H A Dtlb-r3k.c123 int pid = read_c0_entryhi(); in local_flush_tlb_kernel_range() local
142 write_c0_entryhi(pid); in local_flush_tlb_kernel_range()
185 int idx, pid; in __update_tlb() local
193 pid = read_c0_entryhi() & asid_mask; in __update_tlb()
196 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
198 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb()
204 write_c0_entryhi(address | pid); in __update_tlb()
209 write_c0_entryhi(address | pid); in __update_tlb()
215 write_c0_entryhi(pid); in __update_tlb()
/kernel/linux/linux-5.10/arch/um/drivers/
H A Dchan_user.c223 int fds[2], n, err, pid; in winch_tramp() local
241 pid = run_helper_thread(winch_thread, &data, CLONE_FILES, stack_out); in winch_tramp()
242 if (pid < 0) { in winch_tramp()
243 err = pid; in winch_tramp()
267 return pid; in winch_tramp()
279 int pid, thread, count, thread_fd = -1; in register_winch() local
285 pid = tcgetpgrp(fd); in register_winch()
286 if (is_skas_winch(pid, fd, port)) { in register_winch()
291 if (pid == -1) { in register_winch()

Completed in 19 milliseconds

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