nwrite 16 pipe.c uint nwrite; // number of bytes written nwrite 34 pipe.c p->nwrite = 0; nwrite 67 pipe.c wakeup(&p->nwrite); nwrite 84 pipe.c while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full nwrite 90 pipe.c sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep nwrite 92 pipe.c p->data[p->nwrite++ % PIPESIZE] = addr[i]; nwrite 105 pipe.c while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty nwrite 113 pipe.c if(p->nread == p->nwrite) nwrite 117 pipe.c wakeup(&p->nwrite); //DOC: piperead-wakeup