Searched refs:pid (Results 1 – 13 of 13) sorted by relevance
/tests/ |
D | spawnmultipletest.c | 13 int origpid[10], pid[10]; in main() local 21 printf("spawn: %lx\n", pid[i]); in main() 25 pid[i] = wait(&status); in main() 31 if (pid[i] != origpid[i]) { in main() 32 printf("wait: expected pid %d found %d\n", origpid, pid); in main()
|
D | spawnsingletest.c | 13 int origpid, pid; in main() local 23 pid = wait(&status); in main() 29 if (pid != origpid) { in main() 30 printf("wait: expected pid %d found %d\n", origpid, pid); in main()
|
D | spawnanytest.c | 14 int pid[10]; in main() local 20 pid[i] = OSSpawn(program, &argv[0]); in main() 21 printf("spawn: %lx\n", pid[i]); in main()
|
/sys/kern/ |
D | process.c | 59 proc->pid = nextProcessID++; in Process_Create() 145 Process_Lookup(uint64_t pid) in Process_Lookup() argument 152 if (p->pid == pid) { in Process_Lookup() 206 Process_Wait(Process *proc, uint64_t pid) in Process_Wait() argument 220 ASSERT(pid != 0); in Process_Wait() 221 return SYSCALL_PACK(0, pid << 16); in Process_Wait() 224 status = (p->pid << 16) | (p->exitCode & 0xff); in Process_Wait() 233 ASSERT(thr->proc->pid != 1); in Process_Wait() 260 kprintf("pid %llu\n", proc->pid); in Process_Dump() 281 kprintf("Process: %d(%016llx)\n", proc->pid, proc); in Debug_Processes()
|
D | syscall.c | 37 uint64_t pid = cur->proc->pid; in Syscall_GetPID() local 41 return pid; in Syscall_GetPID() 162 return SYSCALL_PACK(0, proc->pid); in Syscall_Spawn() 166 Syscall_Wait(uint64_t pid) in Syscall_Wait() argument 171 status = Process_Wait(cur->proc, pid); in Syscall_Wait()
|
D | handle.c | 53 handle->processId = proc->pid; in Handle_Add()
|
D | semaphore.c | 114 kprintf("waiting: %d:%d\n", thr->proc->pid, thr->tid); in Debug_Semaphores()
|
D | thread.c | 200 ASSERT(proc->pid != 1); in Thread_Destroy()
|
/lib/libc/ |
D | process.c | 34 waitpid(pid_t pid, int *status, UNUSED int options) in waitpid() argument 36 uint64_t wstatus = OSWait(pid); in waitpid()
|
D | syscall.c | 35 OSWait(uint64_t pid) in OSWait() argument 37 return syscall(SYSCALL_WAIT, pid); in OSWait()
|
/sys/include/ |
D | thread.h | 66 uint64_t pid; member 101 Process *Process_Lookup(uint64_t pid); 104 uint64_t Process_Wait(Process *proc, uint64_t pid);
|
D | wait.h | 20 pid_t waitpid(pid_t pid, int *status, int options);
|
/include/ |
D | syscall.h | 14 uint64_t OSWait(uint64_t pid);
|