r                  50 kernel/console.c   uint r;  // Read index
r                  91 kernel/console.c     while(cons.r == cons.w){
r                  96 kernel/console.c       sleep(&cons.r, &cons.lock);
r                  99 kernel/console.c     c = cons.buf[cons.r++ % INPUT_BUF_SIZE];
r                 105 kernel/console.c         cons.r--;
r                 159 kernel/console.c     if(c != 0 && cons.e-cons.r < INPUT_BUF_SIZE){
r                 168 kernel/console.c       if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){
r                 172 kernel/console.c         wakeup(&cons.r);
r                 109 kernel/file.c    int r = 0;
r                 115 kernel/file.c      r = piperead(f->pipe, addr, n);
r                 119 kernel/file.c      r = devsw[f->major].read(1, addr, n);
r                 122 kernel/file.c      if((r = readi(f->ip, 1, addr, f->off, n)) > 0)
r                 123 kernel/file.c        f->off += r;
r                 129 kernel/file.c    return r;
r                 137 kernel/file.c    int r, ret = 0;
r                 164 kernel/file.c        if ((r = writei(f->ip, 1, addr + i, f->off, n1)) > 0)
r                 165 kernel/file.c          f->off += r;
r                 169 kernel/file.c        if(r != n1){
r                 173 kernel/file.c        i += r;
r                  49 kernel/kalloc.c   struct run *r;
r                  57 kernel/kalloc.c   r = (struct run*)pa;
r                  60 kernel/kalloc.c   r->next = kmem.freelist;
r                  61 kernel/kalloc.c   kmem.freelist = r;
r                  71 kernel/kalloc.c   struct run *r;
r                  74 kernel/kalloc.c   r = kmem.freelist;
r                  75 kernel/kalloc.c   if(r)
r                  76 kernel/kalloc.c     kmem.freelist = r->next;
r                  79 kernel/kalloc.c   if(r)
r                  80 kernel/kalloc.c     memset((char*)r, 5, PGSIZE); // fill with junk
r                  81 kernel/kalloc.c   return (void*)r;
r                  46 kernel/sleeplock.c   int r;
r                  49 kernel/sleeplock.c   r = lk->locked && (lk->pid == myproc()->pid);
r                  51 kernel/sleeplock.c   return r;
r                  79 kernel/spinlock.c   int r;
r                  80 kernel/spinlock.c   r = (lk->locked && lk->cpu == mycpu());
r                  81 kernel/spinlock.c   return r;
r                  20 kernel/virtio_disk.c #define R(r) ((volatile uint32 *)(VIRTIO0 + (r)))
r                  88 user/ulib.c      int r;
r                  93 user/ulib.c      r = fstat(fd, st);
r                  95 user/ulib.c      return r;