nwrite 17 pipe.c uint nwrite; // number of bytes written nwrite 35 pipe.c p->nwrite = 0; nwrite 68 pipe.c wakeup(&p->nwrite); nwrite 85 pipe.c while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full nwrite 91 pipe.c sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep nwrite 93 pipe.c p->data[p->nwrite++ % PIPESIZE] = addr[i]; nwrite 106 pipe.c while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty nwrite 114 pipe.c if(p->nread == p->nwrite) nwrite 118 pipe.c wakeup(&p->nwrite); //DOC: piperead-wakeup