Searched defs:pid (Results 51 - 65 of 65) sorted by relevance

123

/system/core/init/
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) {
H A Dinit_parser.c438 struct service *service_find_by_pid(pid_t pid) argument
444 if (svc->pid == 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...]
/system/extras/tests/sdcard/
H A Dsysutil.cpp367 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...]
H A Dtestcase.h121 pid_t pid() const { return mPid; } function in class:android_test::TestCase
/system/core/adb/
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,
/system/core/debuggerd/
H A Dtombstone.c167 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/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);
/system/core/sh/
H A Deval.c230 TRACE(("pid %d, evaltree(%p: %d, %d) called\n",
849 pid_t pid; local
854 switch (pid = vfork()) {
888 (void)waitpid(pid, NULL, 0);
893 forkparent(jp, cmd, mode, pid);
H A Djobs.c92 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...]
/system/core/toolbox/
H A Dtop.c55 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...]
/system/core/libcutils/
H A Dmq.c50 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...]
/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

Completed in 50 milliseconds

123