Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 13 of 13) sorted by relevance

/tests/
Dspawnmultipletest.c13 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()
Dspawnsingletest.c13 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()
Dspawnanytest.c14 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/
Dprocess.c59 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()
Dsyscall.c37 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()
Dhandle.c53 handle->processId = proc->pid; in Handle_Add()
Dsemaphore.c114 kprintf("waiting: %d:%d\n", thr->proc->pid, thr->tid); in Debug_Semaphores()
Dthread.c200 ASSERT(proc->pid != 1); in Thread_Destroy()
/lib/libc/
Dprocess.c34 waitpid(pid_t pid, int *status, UNUSED int options) in waitpid() argument
36 uint64_t wstatus = OSWait(pid); in waitpid()
Dsyscall.c35 OSWait(uint64_t pid) in OSWait() argument
37 return syscall(SYSCALL_WAIT, pid); in OSWait()
/sys/include/
Dthread.h66 uint64_t pid; member
101 Process *Process_Lookup(uint64_t pid);
104 uint64_t Process_Wait(Process *proc, uint64_t pid);
Dwait.h20 pid_t waitpid(pid_t pid, int *status, int options);
/include/
Dsyscall.h14 uint64_t OSWait(uint64_t pid);