/system/core/libcutils/ |
H A D | mq.c | 50 pid_t pid; member in struct:__anon392 59 typedef void DeathListener(pid_t pid); 130 pid_t pid; member in struct:__anon398 133 * Map from pid to peer proxy. The peer has a peer proxy for each remote 195 * which the peer has been connected to. Maps pid to PeerProxy. Helps 231 pid_t* pid = (pid_t*) key; local 232 return (int) (*pid); 348 static bool peerIsDead(Peer* peer, pid_t pid) { argument 355 if (deadPeer == pid) { 368 hashmapRemove(otherPeer->connections, &(deadPeer->credentials.pid)); 389 pid_t pid = peerProxy->credentials.pid; local 601 peerProxyGetOrCreate(Peer* peer, pid_t pid, bool requestConnection) argument 685 pid_t pid = header->credentials.pid; local 898 pid_t pid = header->credentials.pid; local 1019 pid_t* pid = &(peerProxy->credentials.pid); local 1133 peerSendBytes(pid_t pid, const char* bytes, size_t size) argument 1200 peerSendSharedBytes(pid_t pid, char* bytes, size_t size, void (*free)(void* context), void* context) argument [all...] |
H A D | ashmem-host.c | 41 pid_t pid = getpid(); local 44 srand(time(NULL) + pid); 49 pid,
|
/system/core/include/cutils/ |
H A D | logger.h | 23 int32_t pid; /* generating process's pid */ member in struct:logger_entry 38 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v2
|
/system/core/libcorkscrew/ |
H A D | ptrace-arch.h | 40 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data);
|
H A D | ptrace.c | 83 static void load_ptrace_map_info_data(pid_t pid, map_info_t* mi) { argument 86 if (try_get_word_ptrace(pid, mi->start, &elf_magic) && elf_magic == ELF_MAGIC) { 94 load_ptrace_map_info_data_arch(pid, mi, data); 101 ptrace_context_t* load_ptrace_context(pid_t pid) { argument 105 context->map_info_list = load_map_info_list(pid); 107 load_ptrace_map_info_data(pid, mi);
|
/system/extras/ext4_utils/ |
H A D | setup_fs.c | 17 pid_t pid; local 56 while ((pid=waitpid(-1, &status, 0)) != child) { 57 if (pid == -1) {
|
/system/core/adb/ |
H A D | services.c | 168 int pid, ret; local 175 pid = fork(); 176 if (pid == 0) { 180 } else if (pid > 0) { 182 waitpid(pid, &ret, 0); 260 static int create_subprocess(const char *cmd, const char *arg0, const char *arg1, pid_t *pid) argument 284 *pid = fork(); 285 if(*pid < 0) { 291 if(*pid == 0){ 326 // running before the child has a /proc/pid/oom_ad 343 pid_t pid = (pid_t)cookie; local 377 pid_t pid; local [all...] |
H A D | framebuffer_service.c | 66 pid_t pid = fork(); 67 if (pid < 0) goto done; 69 if (pid == 0) { 175 TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));
|
/system/core/debuggerd/ |
H A D | debuggerd.c | 53 pid_t pid, tid; member in struct:__anon288 102 static void wait_for_user_action(pid_t pid) { argument 114 pid, pid); 156 LOG("debuggerd resuming process %d", pid); 222 out_request->pid = cr.pid; 230 snprintf(buf, sizeof buf, "/proc/%d/task/%d", out_request->pid, out_request->tid); 232 LOG("tid %d does not exist in pid %d. ignoring debug request\n", 233 out_request->tid, out_request->pid); [all...] |
H A D | tombstone.c | 167 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid, bool at_fault) { argument 189 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 195 _LOG(log, false, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid, 199 _LOG(log, true, "pid: %d, tid: %d, name: %s\n", pid, tid, 374 * ascending order (like /proc/pid/maps). 407 log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) { 409 snprintf(task_path, sizeof(task_path), "/proc/%d/task", pid); 414 XLOG("Cannot open /proc/%d/task\n", pid); 406 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument 459 dump_log_file(log_t* log, pid_t pid, const char* filename, bool tailOnly) argument 591 dump_logs(log_t* log, pid_t pid, bool tailOnly) argument 600 dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, bool dump_sibling_threads, int* total_sleep_time_usec) argument 693 engrave_tombstone(pid_t pid, pid_t tid, int signal, bool dump_sibling_threads, bool quiet, bool* detach_failed, int* total_sleep_time_usec) argument [all...] |
/system/core/toolbox/ |
H A D | top.c | 55 pid_t pid; member in struct:proc_info 96 static void read_policy(int pid, struct proc_info *proc); 101 static struct proc_info *find_old_proc(pid_t pid, pid_t tid); 230 pid_t pid, tid; local 251 pid = atoi(pid_dir->d_name); 258 proc->pid = proc->tid = pid; 260 sprintf(filename, "/proc/%d/stat", pid); 263 sprintf(filename, "/proc/%d/cmdline", pid); 266 sprintf(filename, "/proc/%d/status", pid); 382 read_policy(int pid, struct proc_info *proc) argument 488 find_old_proc(pid_t pid, pid_t tid) argument [all...] |
H A D | kill.c | 136 int pid = atoi(argv[0]); local 137 int err = kill(pid, sig); 140 fprintf(stderr, "could not kill pid %d: %s\n", pid, strerror(errno));
|
/system/core/libctest/ |
H A D | ctest.c | 90 pid_t pid = fork(); local 91 if (pid == 0) { 97 } else if (pid < 0) { 103 waitpid(pid, &status, 0);
|
/system/core/logwrapper/ |
H A D | logwrapper.c | 126 pid_t pid; local 158 pid = fork(); 159 if (pid < 0) { 161 } else if (pid == 0) {
|
/system/netd/ |
H A D | PppController.cpp | 54 pid_t pid; local 74 if ((pid = fork()) < 0) { 79 if (!pid) { 100 mPid = pid;
|
H A D | TetherController.cpp | 109 pid_t pid; local 121 if ((pid = fork()) < 0) { 128 if (!pid) { 147 args[5] = (char *)"--pid-file"; 165 mDaemonPid = pid; 210 pid_t pid; local 211 if ((pid = fork()) < 0) { 216 if (!pid) { 238 mDhcpcdPid = pid; 239 ALOGD("Reverse Tethering running, pid [all...] |
/system/vold/ |
H A D | logwrapper.c | 109 pid_t pid; local 129 pid = fork(); 130 if (pid < 0) { 134 } else if (pid == 0) {
|
/system/core/sh/ |
H A D | jobs.c | 92 MKINIT pid_t backgndpid = -1; /* pid of last background process */ 273 if (tcsetpgrp(ttyfd, jp->ps[i].pid) != -1) 367 if (killpg(jp->ps[i].pid, SIGCONT) != -1) 393 outfmt(out, "%ld\n", (long)jp->ps->pid); 447 fmtstr(s + col, 16, "%ld ", (long)ps->pid); 669 out1fmt("%ld", (long)jp->ps[i].pid); 683 return -jp->ps[0].pid; 695 int pid; local 749 pid = number(name); 752 && jp->ps[jp->nprocs - 1].pid 849 int pid; local 867 forkparent(struct job *jp, union node *n, int mode, pid_t pid) argument 1044 int pid; local [all...] |
H A D | jobs.h | 47 #define SHOW_PID 0x04 /* include process pid */ 63 pid_t pid; /* process id */ member in struct:procstat 85 extern pid_t backgndpid; /* pid of last background process */
|
/system/extras/librank/ |
H A D | librank.c | 30 pid_t pid; member in struct:process_info 49 static int getprocname(pid_t pid, char *buf, size_t len); 150 struct process_info *get_process(pid_t pid) { argument 159 process->pid = pid; 160 getprocname(pid, process->cmdline, sizeof(process->cmdline)); 242 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid); 260 pm_map_name(maps[j]), proc->pid); 290 pi->pid); 314 static int getprocname(pid_t pid, cha argument [all...] |
/system/extras/procrank/ |
H A D | procrank.c | 28 pid_t pid; member in struct:proc_info 34 static int getprocname(pid_t pid, char *buf, int len); 180 procs[i]->pid = pids[i]; 232 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) { 246 procs[i]->pid, 254 procs[i]->pid, 313 static int getprocname(pid_t pid, char *buf, int len) { argument 323 if (asprintf(&filename, "/proc/%zd/cmdline", pid) < 0) {
|
/system/extras/showmap/ |
H A D | showmap.c | 161 static mapinfo *load_maps(int pid, int sort_by_address, int coalesce_by_name) argument 170 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 173 fprintf(stderr, "cannot open /proc/%d/smaps: %s\n", pid, strerror(errno)); 202 fprintf(stderr, "could not read /proc/%d/smaps\n", pid); 242 static int show_map(int pid) argument 255 milist = load_maps(pid, addresses, !verbose && !addresses); 320 int pid; local 343 pid = strtol(arg, &argend, 10); 346 if (show_map(pid)) { 357 "showmap [-t] [-v] [-c] <pid>\ [all...] |
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 367 pid_t pid = wait(&status); local 368 if (-1 == pid) 376 fprintf(stderr, "Child pid %d did not exit cleanly %s\n", 377 pid, reasonChildExited(status)); 445 pid_t pid = getpid(); local 446 char *start = reinterpret_cast<char *>(&pid); 447 size_t size = sizeof(pid); 530 pid_t pid; local 531 char *end = reinterpret_cast<char *>(&pid); 535 size = sizeof(pid); [all...] |
/system/extras/libpagemap/include/pagemap/ |
H A D | pagemap.h | 57 pid_t pid; member in struct:pm_process 112 #define pm_process_pid(proc) ((proc)->pid) 116 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out);
|
/system/extras/libpagemap/ |
H A D | pm_kernel.c | 65 pid_t pid, *pids, *new_pids; local 81 if (sscanf(dir->d_name, "%d", &pid) < 1) 96 pids[pids_count] = pid;
|