pid 95 kernel/proc.c int pid; pid 98 kernel/proc.c pid = nextpid; pid 102 kernel/proc.c return pid; pid 125 kernel/proc.c p->pid = allocpid(); pid 165 kernel/proc.c p->pid = 0; pid 282 kernel/proc.c int i, pid; pid 313 kernel/proc.c pid = np->pid; pid 325 kernel/proc.c return pid; pid 394 kernel/proc.c int havekids, pid; pid 410 kernel/proc.c pid = pp->pid; pid 420 kernel/proc.c return pid; pid 598 kernel/proc.c kill(int pid) pid 604 kernel/proc.c if(p->pid == pid){ pid 692 kernel/proc.c printf("%d %s %s", p->pid, state, p->name); pid 93 kernel/proc.h int pid; // Process ID pid 18 kernel/sleeplock.c lk->pid = 0; pid 29 kernel/sleeplock.c lk->pid = myproc()->pid; pid 38 kernel/sleeplock.c lk->pid = 0; pid 49 kernel/sleeplock.c r = lk->locked && (lk->pid == myproc()->pid); pid 8 kernel/sleeplock.h int pid; // Process holding lock pid 144 kernel/syscall.c p->pid, p->name, num); pid 21 kernel/sysproc.c return myproc()->pid; pid 76 kernel/sysproc.c int pid; pid 78 kernel/sysproc.c argint(0, &pid); pid 79 kernel/sysproc.c return kill(pid); pid 71 kernel/trap.c printf("usertrap(): unexpected scause 0x%lx pid=%d\n", r_scause(), p->pid); pid 19 user/forktest.c int n, pid; pid 24 user/forktest.c pid = fork(); pid 25 user/forktest.c if(pid < 0) pid 27 user/forktest.c if(pid == 0) pid 108 user/grind.c int pid = fork(); pid 109 user/grind.c if(pid == 0){ pid 111 user/grind.c } else if(pid < 0){ pid 117 user/grind.c int pid = fork(); pid 118 user/grind.c if(pid == 0){ pid 122 user/grind.c } else if(pid < 0){ pid 133 user/grind.c int pid = fork(); pid 134 user/grind.c if(pid == 0){ pid 137 user/grind.c } else if(pid < 0){ pid 145 user/grind.c kill(pid); pid 148 user/grind.c int pid = fork(); pid 149 user/grind.c if(pid == 0){ pid 152 user/grind.c } else if(pid < 0){ pid 163 user/grind.c int pid = fork(); pid 164 user/grind.c if(pid == 0){ pid 173 user/grind.c } else if(pid < 0){ pid 181 user/grind.c int pid = fork(); pid 182 user/grind.c if(pid == 0){ pid 190 user/grind.c } else if(pid < 0){ pid 340 user/grind.c int pid = fork(); pid 341 user/grind.c if(pid == 0){ pid 345 user/grind.c if(pid > 0){ pid 17 user/init.c int pid, wpid; pid 28 user/init.c pid = fork(); pid 29 user/init.c if(pid < 0){ pid 33 user/init.c if(pid == 0){ pid 43 user/init.c if(wpid == pid){ pid 185 user/sh.c int pid; pid 187 user/sh.c pid = fork(); pid 188 user/sh.c if(pid == -1) pid 190 user/sh.c return pid; pid 173 user/usertests.c int pid = fork(); pid 174 user/usertests.c if(pid < 0){ pid 178 user/usertests.c if(pid == 0){ pid 375 user/usertests.c int pid, xstatus; pid 379 user/usertests.c pid = fork(); pid 380 user/usertests.c if(pid < 0){ pid 385 user/usertests.c if(pid == 0){ pid 452 user/usertests.c int pid, xstatus; pid 454 user/usertests.c pid = fork(); pid 455 user/usertests.c if(pid < 0){ pid 459 user/usertests.c if(pid == 0){ pid 492 user/usertests.c int pid, xstatus; pid 498 user/usertests.c pid = fork(); pid 499 user/usertests.c if(pid < 0){ pid 503 user/usertests.c if(pid == 0){ pid 684 user/usertests.c int fd, xstatus, pid; pid 689 user/usertests.c pid = fork(); pid 690 user/usertests.c if(pid < 0) { pid 694 user/usertests.c if(pid == 0) { pid 711 user/usertests.c if (wait(&xstatus) != pid) { pid 741 user/usertests.c int fds[2], pid, xstatus; pid 749 user/usertests.c pid = fork(); pid 751 user/usertests.c if(pid == 0){ pid 762 user/usertests.c } else if(pid > 0){ pid 881 user/usertests.c int i, pid; pid 884 user/usertests.c pid = fork(); pid 885 user/usertests.c if(pid < 0){ pid 889 user/usertests.c if(pid){ pid 891 user/usertests.c if(wait(&xstate) != pid){ pid 913 user/usertests.c int pid = fork(); pid 914 user/usertests.c if(pid < 0){ pid 918 user/usertests.c if(pid){ pid 919 user/usertests.c if(wait(0) != pid){ pid 970 user/usertests.c int pid = fork(); pid 971 user/usertests.c if(pid < 0){ pid 975 user/usertests.c if(pid == 0){ pid 1005 user/usertests.c int pid = fork(); pid 1006 user/usertests.c if(pid < 0){ pid 1010 user/usertests.c if(pid == 0){ pid 1060 user/usertests.c int pid; pid 1062 user/usertests.c if((pid = fork()) == 0){ pid 1099 user/usertests.c int fd, pid, i, n, nc, np; pid 1109 user/usertests.c pid = fork(); pid 1110 user/usertests.c memset(buf, pid==0?'c':'p', sizeof(buf)); pid 1117 user/usertests.c if(pid == 0) { pid 1156 user/usertests.c int fd, pid, i, j, n, total, pi; pid 1165 user/usertests.c pid = fork(); pid 1166 user/usertests.c if(pid < 0){ pid 1171 user/usertests.c if(pid == 0){ pid 1223 user/usertests.c int pid, i, fd, pi; pid 1227 user/usertests.c pid = fork(); pid 1228 user/usertests.c if(pid < 0){ pid 1233 user/usertests.c if(pid == 0){ pid 1400 user/usertests.c int i, pid, n, fd; pid 1412 user/usertests.c pid = fork(); pid 1413 user/usertests.c if(pid && (i % 3) == 1){ pid 1415 user/usertests.c } else if(pid == 0 && (i % 5) == 1){ pid 1425 user/usertests.c if(pid == 0) { pid 1464 user/usertests.c pid = fork(); pid 1465 user/usertests.c if(pid < 0){ pid 1469 user/usertests.c if(((i % 3) == 0 && pid == 0) || pid 1470 user/usertests.c ((i % 3) == 1 && pid != 0)){ pid 1485 user/usertests.c if(pid == 0) pid 1497 user/usertests.c int pid, i; pid 1500 user/usertests.c pid = fork(); pid 1501 user/usertests.c if(pid < 0){ pid 1506 user/usertests.c unsigned int x = (pid ? 1 : 97); pid 1518 user/usertests.c if(pid) pid 1966 user/usertests.c int n, pid; pid 1969 user/usertests.c pid = fork(); pid 1970 user/usertests.c if(pid < 0) pid 1972 user/usertests.c if(pid == 0) pid 2003 user/usertests.c int i, pid, xstatus; pid 2007 user/usertests.c pid = fork(); pid 2008 user/usertests.c if(pid < 0){ pid 2012 user/usertests.c if(pid == 0){ pid 2046 user/usertests.c pid = fork(); pid 2047 user/usertests.c if(pid < 0){ pid 2057 user/usertests.c if(pid == 0) pid 2128 user/usertests.c int pid; pid 2131 user/usertests.c pid = fork(); pid 2132 user/usertests.c if(pid < 0){ pid 2136 user/usertests.c if(pid == 0){ pid 2153 user/usertests.c int pid; pid 2154 user/usertests.c pid = fork(); pid 2155 user/usertests.c if(pid < 0){ pid 2159 user/usertests.c if(pid == 0){ pid 2182 user/usertests.c int pid; pid 2215 user/usertests.c pid = fork(); pid 2216 user/usertests.c if(pid < 0){ pid 2220 user/usertests.c if(pid == 0){ pid 2306 user/usertests.c int pid, fd, xstatus; pid 2309 user/usertests.c pid = fork(); pid 2310 user/usertests.c if(pid == 0){ pid 2325 user/usertests.c } else if(pid < 0){ pid 2411 user/usertests.c int pid; pid 2414 user/usertests.c pid = fork(); pid 2415 user/usertests.c if(pid == 0) { pid 2421 user/usertests.c } else if(pid < 0){ pid 2437 user/usertests.c int pid; pid 2443 user/usertests.c pid = fork(); pid 2444 user/usertests.c if(pid == 0) { pid 2449 user/usertests.c } else if(pid < 0){ pid 2483 user/usertests.c int pid = fork(); pid 2484 user/usertests.c if(pid < 0){ pid 2488 user/usertests.c if(pid == 0){ pid 2499 user/usertests.c pid = fork(); pid 2500 user/usertests.c if(pid < 0){ pid 2504 user/usertests.c if(pid == 0){ pid 2514 user/usertests.c pid = fork(); pid 2515 user/usertests.c if(pid < 0){ pid 2519 user/usertests.c if(pid == 0){ pid 2711 user/usertests.c int pid = fork(); pid 2712 user/usertests.c if(pid < 0){ pid 2717 user/usertests.c if(pid == 0){ pid 2800 user/usertests.c int pid = fork(); pid 2801 user/usertests.c if(pid < 0){ pid 2804 user/usertests.c } else if(pid == 0){ pid 2961 user/usertests.c int pid; pid 2965 user/usertests.c if((pid = fork()) < 0) { pid 2969 user/usertests.c if(pid == 0) { pid 3014 user/usertests.c int pid = fork(); pid 3016 user/usertests.c if(pid < 0){ pid 3021 user/usertests.c if(pid == 0){