proc 238 console.c if(proc->killed){ proc 6 defs.h struct proc; proc 107 defs.h struct proc* copyproc(struct proc*); proc 87 exec.c safestrcpy(proc->name, last, sizeof(proc->name)); proc 90 exec.c oldpgdir = proc->pgdir; proc 91 exec.c proc->pgdir = pgdir; proc 92 exec.c proc->sz = sz; proc 93 exec.c proc->tf->eip = elf.entry; // main proc 94 exec.c proc->tf->esp = sp; proc 95 exec.c switchuvm(proc); proc 613 fs.c ip = idup(proc->cwd); proc 105 mp.c struct mpproc *proc; proc 116 mp.c proc = (struct mpproc*)p; proc 117 mp.c if(ncpu != proc->apicid){ proc 118 mp.c cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid); proc 121 mp.c if(proc->flags & MPBOOT) proc 85 pipe.c if(p->readopen == 0 || proc->killed){ proc 106 pipe.c if(proc->killed){ proc 12 proc.c struct proc proc[NPROC]; proc 15 proc.c static struct proc *initproc; proc 34 proc.c static struct proc* proc 37 proc.c struct proc *p; proc 41 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) proc 81 proc.c struct proc *p; proc 112 proc.c sz = proc->sz; proc 114 proc.c if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0) proc 117 proc.c if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0) proc 120 proc.c proc->sz = sz; proc 121 proc.c switchuvm(proc); proc 132 proc.c struct proc *np; proc 139 proc.c if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){ proc 145 proc.c np->sz = proc->sz; proc 146 proc.c np->parent = proc; proc 147 proc.c *np->tf = *proc->tf; proc 153 proc.c if(proc->ofile[i]) proc 154 proc.c np->ofile[i] = filedup(proc->ofile[i]); proc 155 proc.c np->cwd = idup(proc->cwd); proc 157 proc.c safestrcpy(np->name, proc->name, sizeof(proc->name)); proc 175 proc.c struct proc *p; proc 178 proc.c if(proc == initproc) proc 183 proc.c if(proc->ofile[fd]){ proc 184 proc.c fileclose(proc->ofile[fd]); proc 185 proc.c proc->ofile[fd] = 0; proc 190 proc.c iput(proc->cwd); proc 192 proc.c proc->cwd = 0; proc 197 proc.c wakeup1(proc->parent); proc 200 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ proc 201 proc.c if(p->parent == proc){ proc 209 proc.c proc->state = ZOMBIE; proc 219 proc.c struct proc *p; proc 226 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ proc 227 proc.c if(p->parent != proc) proc 247 proc.c if(!havekids || proc->killed){ proc 253 proc.c sleep(proc, &ptable.lock); //DOC: wait-sleep proc 268 proc.c struct proc *p; proc 276 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ proc 283 proc.c proc = p; proc 286 proc.c swtch(&cpu->scheduler, proc->context); proc 291 proc.c proc = 0; proc 309 proc.c if(proc->state == RUNNING) proc 314 proc.c swtch(&proc->context, cpu->scheduler); proc 323 proc.c proc->state = RUNNABLE; proc 354 proc.c if(proc == 0) proc 372 proc.c proc->chan = chan; proc 373 proc.c proc->state = SLEEPING; proc 377 proc.c proc->chan = 0; proc 392 proc.c struct proc *p; proc 394 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) proc 414 proc.c struct proc *p; proc 417 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ proc 447 proc.c struct proc *p; proc 451 proc.c for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ proc 16 proc.h struct proc *proc; // The currently-running process. proc 31 proc.h extern struct proc *proc asm("%gs:4"); // cpus[cpunum()].proc proc 61 proc.h struct proc *parent; // Parent process proc 20 syscall.c if(addr >= proc->sz || addr+4 > proc->sz) proc 34 syscall.c if(addr >= proc->sz) proc 37 syscall.c ep = (char*)proc->sz; proc 48 syscall.c return fetchint(proc->tf->esp + 4 + 4*n, ip); proc 61 syscall.c if((uint)i >= proc->sz || (uint)i+size > proc->sz) proc 131 syscall.c num = proc->tf->eax; proc 133 syscall.c proc->tf->eax = syscalls[num](); proc 136 syscall.c proc->pid, proc->name, num); proc 137 syscall.c proc->tf->eax = -1; proc 27 sysfile.c if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0) proc 44 sysfile.c if(proc->ofile[fd] == 0){ proc 45 sysfile.c proc->ofile[fd] = f; proc 98 sysfile.c proc->ofile[fd] = 0; proc 388 sysfile.c iput(proc->cwd); proc 390 sysfile.c proc->cwd = ip; proc 434 sysfile.c proc->ofile[fd0] = 0; proc 42 sysproc.c return proc->pid; proc 53 sysproc.c addr = proc->sz; proc 70 sysproc.c if(proc->killed){ proc 40 trap.c if(proc->killed) proc 42 trap.c proc->tf = tf; proc 44 trap.c if(proc->killed) proc 83 trap.c if(proc == 0 || (tf->cs&3) == 0){ proc 92 trap.c proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, proc 94 trap.c proc->killed = 1; proc 100 trap.c if(proc && proc->killed && (tf->cs&3) == DPL_USER) proc 105 trap.c if(proc && proc->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER) proc 109 trap.c if(proc && proc->killed && (tf->cs&3) == DPL_USER) proc 39 vm.c proc = 0; proc 171 vm.c cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE;