nwrite             17 kernel/pipe.c    uint nwrite;    // number of bytes written
nwrite             35 kernel/pipe.c    pi->nwrite = 0;
nwrite             67 kernel/pipe.c      wakeup(&pi->nwrite);
nwrite             88 kernel/pipe.c      if(pi->nwrite == pi->nread + PIPESIZE){ //DOC: pipewrite-full
nwrite             90 kernel/pipe.c        sleep(&pi->nwrite, &pi->lock);
nwrite             95 kernel/pipe.c        pi->data[pi->nwrite++ % PIPESIZE] = ch;
nwrite            113 kernel/pipe.c    while(pi->nread == pi->nwrite && pi->writeopen){  //DOC: pipe-empty
nwrite            121 kernel/pipe.c      if(pi->nread == pi->nwrite)
nwrite            127 kernel/pipe.c    wakeup(&pi->nwrite);  //DOC: piperead-wakeup