np 283 kernel/proc.c struct proc *np; np 287 kernel/proc.c if((np = allocproc()) == 0){ np 292 kernel/proc.c if(uvmcopy(p->pagetable, np->pagetable, p->sz) < 0){ np 293 kernel/proc.c freeproc(np); np 294 kernel/proc.c release(&np->lock); np 297 kernel/proc.c np->sz = p->sz; np 300 kernel/proc.c *(np->trapframe) = *(p->trapframe); np 303 kernel/proc.c np->trapframe->a0 = 0; np 308 kernel/proc.c np->ofile[i] = filedup(p->ofile[i]); np 309 kernel/proc.c np->cwd = idup(p->cwd); np 311 kernel/proc.c safestrcpy(np->name, p->name, sizeof(p->name)); np 313 kernel/proc.c pid = np->pid; np 315 kernel/proc.c release(&np->lock); np 318 kernel/proc.c np->parent = p; np 321 kernel/proc.c acquire(&np->lock); np 322 kernel/proc.c np->state = RUNNABLE; np 323 kernel/proc.c release(&np->lock); np 1099 user/usertests.c int fd, pid, i, n, nc, np; np 1132 user/usertests.c nc = np = 0; np 1138 user/usertests.c np++; np 1143 user/usertests.c if(nc == N*SZ && np == N*SZ){