Searched refs:pid (Results 51 - 75 of 80) sorted by relevance

1234

/system/netd/
H A DSoftapController.cpp59 pid_t pid = 1; local
71 if ((pid = fork()) < 0) {
76 if (!pid) {
86 mPid = pid;
H A Dmain.cpp145 pid_t pid = wait(NULL); local
146 ALOGD("Child process %d exited", pid);
/system/core/init/
H A Dinit.h88 pid_t pid; member in struct:service
123 struct service *service_find_by_pid(pid_t pid);
H A Dinit.c164 pid_t pid; local
237 pid = fork();
239 if (pid == 0) {
293 ERROR("Failed to set pid %d ioprio = %d,%d: %s\n",
374 if (pid < 0) {
376 svc->pid = 0;
381 svc->pid = pid;
409 if (svc->pid) {
411 kill(-svc->pid, SIGKIL
[all...]
H A Dbootchart.c252 int pid = strtol( entry->d_name, &end, 10); local
261 snprintf(filename,sizeof(filename),"/proc/%d/cmdline",pid);
265 snprintf(filename,sizeof(filename),"/proc/%d/stat",pid);
H A Dbuiltins.c464 pid_t pid; local
480 pid = fork();
481 if (pid > 0) {
483 waitpid(pid, &status, 0);
489 } else if (pid == 0) {
H A Ddevices.c791 pid_t pid; local
801 pid = fork();
802 if (!pid) {
/system/extras/libpagemap/
H A Dpm_process.c32 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out) { argument
45 proc->pid = pid;
47 error = snprintf(filename, MAX_FILENAME, "/proc/%d/pagemap", pid);
184 proc->pid);
239 error = snprintf(filename, MAX_FILENAME, "/proc/%d/maps", proc->pid);
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp148 // Print command line, pid, kernel version, OOM adj and scheduler.
308 pid_t *pid = (pid_t*)chunk; local
340 if (testCase->pid() != *pid)
342 fprintf(stderr, "Wrong pid found @ read block %x != %x\n", testCase->pid(), *pid);
359 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chunk
375 sprintf(filename, "%s/file-%d-%d", kTestDir, i, testCase->pid());
[all...]
H A Dtestcase.h121 pid_t pid() const { return mPid; } function in class:android_test::TestCase
/system/core/toolbox/
H A Dlsusb.c169 uint16_t vid, pid; local
173 pid = usb_device_get_product_id(dev);
178 printf("%s: %04x:%04x %s %s %s\n", dev_name, vid, pid,
/system/core/include/corkscrew/
H A Dptrace.h115 ptrace_context_t* load_ptrace_context(pid_t pid);
/system/core/include/cutils/
H A Dlogprint.h47 int32_t pid; member in struct:AndroidLogEntry_t
/system/extras/procmem/
H A Dprocmem.c42 pid_t pid; local
96 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10);
111 error = pm_process_create(ker, pid, &proc);
114 "does process %d really exist?\n", pid);
304 fprintf(stderr, "Usage: %s [ -w | -W ] [ -p | -m ] [ -h ] pid\n"
/system/core/liblog/
H A Dfake_log_device.c357 pid_t pid, tid; local
363 pid = tid = getpid(); // find gettid()?
395 "%c(%5d) ", priChar, pid);
401 "%c(%5d:%5d) ", priChar, pid, tid);
415 "%s %5d %5d %c %-8s \n\t", timeBuf, pid, tid, priChar, tag);
421 timeBuf, pid, tid, priChar, tag);
426 "%c/%-8s(%5d): ", priChar, tag, pid);
H A Dlogprint.c355 entry->pid = buf->pid;
610 entry->pid = buf->pid;
750 "%c(%5d) ", priChar, entry->pid);
756 "%c(%5d:%5d) ", priChar, entry->pid, entry->tid);
769 priChar, entry->tag, entry->pid);
776 entry->pid, entry->tid, priChar, entry->tag);
783 timeBuf, entry->tv_nsec / 1000000, entry->pid,
792 "%c/%-8s(%5d): ", priChar, entry->tag, entry->pid);
[all...]
/system/vold/
H A DCommandListener.cpp232 int pid = Process::getPid(de->d_name); local
234 if (pid < 0) {
239 Process::getProcessName(pid, processName, sizeof(processName));
241 if (Process::checkFileDescriptorSymLinks(pid, argv[2]) ||
242 Process::checkFileMaps(pid, argv[2]) ||
243 Process::checkSymLink(pid, argv[2], "cwd") ||
244 Process::checkSymLink(pid, argv[2], "root") ||
245 Process::checkSymLink(pid, argv[2], "exe")) {
248 snprintf(msg, sizeof(msg), "%d %s", pid, processName);
/system/core/fs_mgr/
H A Dfs_mgr.c369 pid_t pid; local
396 pid = fork();
397 if (pid > 0) {
399 waitpid(pid, &status, 0);
400 } else if (pid == 0) {
/system/core/adb/
H A Dtransport_usb.c132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
H A Dusb_linux.c161 unsigned vid, pid; local
196 pid = device->idProduct;
197 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid);
228 is_adb_interface(vid, pid, interface->bInterfaceClass,
H A Dadb.h455 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol);
H A Dcommandline.c122 " jdwp:<process pid> (remote only)\n"
547 pid_t pid;
567 pid = fork();
569 if (pid < 0) {
572 } else if (pid == 0) {
/system/core/libsysutils/src/
H A DSocketClient.cpp40 mPid = creds.pid;
/system/core/sdcard/
H A Dfuse.h122 __u32 pid; /* tgid */ member in struct:fuse_file_lock
543 __u32 pid; member in struct:fuse_in_header
/system/core/libnl_2/genl/
H A Dgenl.c49 void *genlmsg_put(struct nl_msg *msg, uint32_t pid, uint32_t seq, int family, argument

Completed in 168 milliseconds

1234