Home
last modified time | relevance | path

Searched refs:pid (Results 1351 - 1375 of 4939) sorted by relevance

1...<<51525354555657585960>>...198

/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen12.c168 pid_t pid; in test_cloexec() local
181 pid = tst_fork(); in test_cloexec()
182 if (pid < 0) in test_cloexec()
185 if (pid == 0) { in test_cloexec()
192 if (wait(&status) != pid) in test_cloexec()
/third_party/ltp/testcases/kernel/mce-test/stress/tools/fs-metadata/
H A Dfs-metadata.sh45 for pid in $(cat $K_THREADS_PID)
47 k_log "killing k-thread $pid"
48 run_quiet kill -9 $pid
212 export K_THREADS_PID=$K_VAR/k-threads.pid
213 export K_FS_METADATA_PID=$K_VAR/fs_metadata.pid
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
H A Dhugeshmctl01.c126 pid_t pid; in stat_setup_1() local
129 switch (pid = SAFE_FORK()) { in stat_setup_1()
154 * by looking at the pid of the creator, the segement size,
159 pid_t pid; in func_stat() local
162 /* check perm, pid, nattach and size */ in func_stat()
163 pid = getpid(); in func_stat()
165 if (buf.shm_cpid != pid) { in func_stat()
166 tst_res(TFAIL, "creator pid is incorrect"); in func_stat()
194 tst_res(TPASS, "pid, size, # of attaches and mode are correct " in func_stat()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
H A D2-1.c46 pid_t pid; in main() local
71 pid = fork(); in main()
72 if (pid == -1) { in main()
76 if (pid == 0) { in main()
89 to_child[PIPE_WRITE], pid); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/
H A D2-2.c49 pid_t pid; in main() local
71 pid = fork(); in main()
72 if (pid == -1) { in main()
76 if (pid == 0) { in main()
87 to_child[PIPE_WRITE], pid); in main()
/kernel/linux/linux-5.10/kernel/
H A Dfork.c1165 * This changes mm's executable file (shown as symlink /proc/[pid]/exe).
1699 init_task_pid(struct task_struct *task, enum pid_type type, struct pid *pid) in init_task_pid() argument
1702 task->thread_pid = pid; in init_task_pid()
1704 task->signal->pids[type] = pid; in init_task_pid()
1727 struct pid *pidfd_pid(const struct file *file) in pidfd_pid()
1737 struct pid *pid = file->private_data; in pidfd_release() local
1740 put_pid(pid); in pidfd_release()
1751 * This function will print the pid tha
1782 struct pid *pid = f->private_data; pidfd_show_fdinfo() local
1816 struct pid *pid = file->private_data; pidfd_poll() local
1882 copy_process( struct pid *pid, int trace, int node, struct kernel_clone_args *args) copy_process() argument
2493 struct pid *pid; kernel_clone() local
[all...]
/kernel/liteos_a/kernel/base/include/
H A Dlos_process_pri.h383 #define OS_PID_CHECK_INVALID(pid) (((UINT32)(pid)) >= g_processMaxNum)
385 STATIC INLINE BOOL OsProcessIDUserCheckInvalid(UINT32 pid) in OsProcessIDUserCheckInvalid() argument
387 return ((pid >= g_processMaxNum) || (pid == 0)); in OsProcessIDUserCheckInvalid()
510 * Wait for the child process specified by the pid to finish
538 extern INT32 OsSetProcessScheduler(INT32 which, INT32 pid, UINT16 policy, const LosSchedParam *param);
539 extern INT32 OsGetProcessPriority(INT32 which, INT32 pid);
542 extern INT32 OsSetProcessGroupID(UINT32 pid, UINT32 gid);
548 extern INT32 OsSendSignalToProcessGroup(INT32 pid, siginfo_
[all...]
H A Dlos_info_pri.h45 UINT32 pid; member
69 UINT32 pid; member
100 UINT32 OsGetProcessThreadInfo(UINT32 pid, ProcessThreadInfo *threadInfo);
/kernel/liteos_a/kernel/base/misc/
H A Dtask_shellcmd.c144 SHOW("%5u%6u%5d%6d%7s%8s%7s%9u%5u%7u", processInfo->pid, processInfo->ppid, processInfo->pgroupID, in ProcessDataShow()
172 for (UINT32 pid = 1; pid < g_processMaxNum; ++pid) { in AllProcessDataShow()
173 const ProcessInfo *processInfo = pcbArray + pid; in AllProcessDataShow()
184 UINT32 pid = OS_KERNEL_IDLE_PROCESS_ID; in ProcessInfoShow() local
185 UINT32 sysUsage = LOS_CPUP_PRECISION - pcbArray[pid].cpup10sUsage; in ProcessInfoShow()
187 pcbArray[pid].cpup10sUsage / CPUP_MULT, pcbArray[pid].cpup10sUsage % CPUP_MULT); in ProcessInfoShow()
316 SHOW(" %4u%5u", taskInfo->tid, taskInfo->pid); in TaskInfoDataShow()
[all...]
/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/
H A Dreugid_test_001.cpp374 pid_t pid = fork(); in Child() local
375 if (pid == 0) { in Child()
381 ret = waitpid(pid, &status, 0); in Child()
382 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in Child()
421 pid_t pid = fork(); in TestCase() local
422 ICUNIT_GOTO_WITHIN_EQUAL(pid, 0, 100000, pid, EXIT); // assume pid is between 0 and 100000 in TestCase()
423 if (pid == 0) { in TestCase()
428 ret = waitpid(pid, in TestCase()
[all...]
/third_party/alsa-utils/alsactl/
H A Ddaemon.c316 long pid; in state_daemon_kill() local
333 pid = read_pid_file(pidfile); in state_daemon_kill()
334 if (pid > 0) { in state_daemon_kill()
335 if (kill(pid, sig) >= 0) in state_daemon_kill()
344 long pid; in check_another_instance() local
346 pid = read_pid_file(pidfile); in check_another_instance()
347 if (pid >= 0) { in check_another_instance()
349 if (kill(pid, SIGUSR1) >= 0) { in check_another_instance()
351 pid = read_pid_file(pidfile); in check_another_instance()
352 if (pid > in check_another_instance()
[all...]
/third_party/python/Lib/
H A Dsocketserver.py573 pid, _ = os.waitpid(-1, 0)
574 self.active_children.discard(pid)
582 for pid in self.active_children.copy():
585 pid, _ = os.waitpid(pid, flags)
586 # if the child hasn't exited yet, pid will be 0 and ignored by
588 self.active_children.discard(pid)
591 self.active_children.discard(pid)
611 pid = os.fork()
612 if pid
[all...]
/third_party/toybox/toys/pending/
H A Dtcpsvd.c56 int pid; member
89 // Insert pid, ip and fd in the list.
90 static void insert(struct list_pid **l, int pid, char *addr) in insert() argument
93 newnode->pid = pid; in insert()
123 static char *delete(struct list_pid **pids, int pid) in delete() argument
131 if (head->pid == pid) { in delete()
268 pid_t pid; in tcpsvd_main() local
354 if (!(pid in tcpsvd_main()
[all...]
/third_party/ltp/include/
H A Dtst_safe_macros.h144 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
146 #define SAFE_SETPGID(pid, pgid) \
147 safe_setpgid(__FILE__, __LINE__, (pid), (pgid))
149 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid);
151 #define SAFE_GETPGID(pid) \
152 safe_getpgid(__FILE__, __LINE__, (pid))
210 #define SAFE_WAITPID(pid, status, opts) \
211 safe_waitpid(__FILE__, __LINE__, NULL, (pid), (status), (opts))
213 #define SAFE_KILL(pid, sig) \
214 safe_kill(__FILE__, __LINE__, NULL, (pid), (si
[all...]
/kernel/linux/linux-6.6/mm/damon/
H A Dsysfs.c8 #include <linux/pid.h>
214 int pid; member
251 return sysfs_emit(buf, "%d\n", target->pid); in pid_target_show()
259 int err = kstrtoint(buf, 0, &target->pid); in pid_target_store()
1094 put_pid(t->pid); in damon_sysfs_destroy_targets()
1139 t->pid = find_get_pid(sys_target->pid); in damon_sysfs_add_target()
1140 if (!t->pid) in damon_sysfs_add_target()
1153 static int damon_sysfs_update_target_pid(struct damon_target *target, int pid) in damon_sysfs_update_target_pid() argument
1155 struct pid *pid_ne in damon_sysfs_update_target_pid()
1561 int pid = -1; pid_show() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dwith_stress.sh96 for pid in ${stress_pids[*]} ; do
97 kill -SIGTERM $pid
98 wait $pid
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
H A Di915_gem_context_types.h25 struct pid;
100 * @pid: process id of creator
107 struct pid *pid; member
179 * name, pid and user handle in order to uniquely identify the
/kernel/linux/linux-5.10/include/linux/
H A Dagpgart.h64 pid_t pid; /* pid of process */ member
92 pid_t pid; member
100 pid_t pid; member
/kernel/linux/linux-6.6/include/linux/
H A Dagpgart.h64 pid_t pid; /* pid of process */ member
92 pid_t pid; member
100 pid_t pid; member
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dwith_stress.sh96 for pid in ${stress_pids[*]} ; do
97 kill -SIGTERM $pid
98 wait $pid
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dbench_local_storage_create.c65 __u32 pid; in BPF_PROG() local
67 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
68 if (pid != bench_pid) in BPF_PROG()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/dexcr/
H A Ddexcr.c82 void await_child_success(pid_t pid) in await_child_success() argument
86 FAIL_IF_EXIT_MSG(pid == -1, "fork failed"); in await_child_success()
87 FAIL_IF_EXIT_MSG(waitpid(pid, &wstatus, 0) == -1, "wait failed"); in await_child_success()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_007.cpp40 pid_t pid; in Testcase() local
72 pid = ret; in Testcase()
87 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_050.cpp57 pid_t pid; in Testcase() local
74 pid = clone(TestThread, (void *)stackTop, CLONE_PARENT, &arg); in Testcase()
76 ret = waitpid(pid, &status, 0); in Testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_048.cpp38 int pid; in Testcase() local
72 pid = ret; in Testcase()
75 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()

Completed in 16 milliseconds

1...<<51525354555657585960>>...198