lock               27 kernel/bio.c     struct spinlock lock;
lock               41 kernel/bio.c     initlock(&bcache.lock, "bcache");
lock               49 kernel/bio.c       initsleeplock(&b->lock, "buffer");
lock               63 kernel/bio.c     acquire(&bcache.lock);
lock               69 kernel/bio.c         release(&bcache.lock);
lock               70 kernel/bio.c         acquiresleep(&b->lock);
lock               83 kernel/bio.c         release(&bcache.lock);
lock               84 kernel/bio.c         acquiresleep(&b->lock);
lock              109 kernel/bio.c     if(!holdingsleep(&b->lock))
lock              119 kernel/bio.c     if(!holdingsleep(&b->lock))
lock              122 kernel/bio.c     releasesleep(&b->lock);
lock              124 kernel/bio.c     acquire(&bcache.lock);
lock              136 kernel/bio.c     release(&bcache.lock);
lock              141 kernel/bio.c     acquire(&bcache.lock);
lock              143 kernel/bio.c     release(&bcache.lock);
lock              148 kernel/bio.c     acquire(&bcache.lock);
lock              150 kernel/bio.c     release(&bcache.lock);
lock                6 kernel/buf.h     struct sleeplock lock;
lock               45 kernel/console.c   struct spinlock lock;
lock               87 kernel/console.c   acquire(&cons.lock);
lock               93 kernel/console.c         release(&cons.lock);
lock               96 kernel/console.c       sleep(&cons.r, &cons.lock);
lock              124 kernel/console.c   release(&cons.lock);
lock              138 kernel/console.c   acquire(&cons.lock);
lock              178 kernel/console.c   release(&cons.lock);
lock              184 kernel/console.c   initlock(&cons.lock, "cons");
lock               18 kernel/file.c    struct spinlock lock;
lock               25 kernel/file.c    initlock(&ftable.lock, "ftable");
lock               34 kernel/file.c    acquire(&ftable.lock);
lock               38 kernel/file.c        release(&ftable.lock);
lock               42 kernel/file.c    release(&ftable.lock);
lock               50 kernel/file.c    acquire(&ftable.lock);
lock               54 kernel/file.c    release(&ftable.lock);
lock               64 kernel/file.c    acquire(&ftable.lock);
lock               68 kernel/file.c      release(&ftable.lock);
lock               74 kernel/file.c    release(&ftable.lock);
lock               21 kernel/file.h    struct sleeplock lock; // protects everything below here
lock              177 kernel/fs.c      struct spinlock lock;
lock              186 kernel/fs.c      initlock(&itable.lock, "itable");
lock              188 kernel/fs.c        initsleeplock(&itable.inode[i].lock, "inode");
lock              251 kernel/fs.c      acquire(&itable.lock);
lock              258 kernel/fs.c          release(&itable.lock);
lock              274 kernel/fs.c      release(&itable.lock);
lock              284 kernel/fs.c      acquire(&itable.lock);
lock              286 kernel/fs.c      release(&itable.lock);
lock              301 kernel/fs.c      acquiresleep(&ip->lock);
lock              323 kernel/fs.c      if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
lock              326 kernel/fs.c      releasesleep(&ip->lock);
lock              339 kernel/fs.c      acquire(&itable.lock);
lock              346 kernel/fs.c        acquiresleep(&ip->lock);
lock              348 kernel/fs.c        release(&itable.lock);
lock              355 kernel/fs.c        releasesleep(&ip->lock);
lock              357 kernel/fs.c        acquire(&itable.lock);
lock              361 kernel/fs.c      release(&itable.lock);
lock               22 kernel/kalloc.c   struct spinlock lock;
lock               29 kernel/kalloc.c   initlock(&kmem.lock, "kmem");
lock               59 kernel/kalloc.c   acquire(&kmem.lock);
lock               62 kernel/kalloc.c   release(&kmem.lock);
lock               73 kernel/kalloc.c   acquire(&kmem.lock);
lock               77 kernel/kalloc.c   release(&kmem.lock);
lock               41 kernel/log.c     struct spinlock lock;
lock               60 kernel/log.c     initlock(&log.lock, "log");
lock              129 kernel/log.c     acquire(&log.lock);
lock              132 kernel/log.c         sleep(&log, &log.lock);
lock              135 kernel/log.c         sleep(&log, &log.lock);
lock              138 kernel/log.c         release(&log.lock);
lock              151 kernel/log.c     acquire(&log.lock);
lock              164 kernel/log.c     release(&log.lock);
lock              170 kernel/log.c       acquire(&log.lock);
lock              173 kernel/log.c       release(&log.lock);
lock              219 kernel/log.c     acquire(&log.lock);
lock              234 kernel/log.c     release(&log.lock);
lock               14 kernel/pipe.c    struct spinlock lock;
lock               37 kernel/pipe.c    initlock(&pi->lock, "pipe");
lock               61 kernel/pipe.c    acquire(&pi->lock);
lock               70 kernel/pipe.c      release(&pi->lock);
lock               73 kernel/pipe.c      release(&pi->lock);
lock               82 kernel/pipe.c    acquire(&pi->lock);
lock               85 kernel/pipe.c        release(&pi->lock);
lock               90 kernel/pipe.c        sleep(&pi->nwrite, &pi->lock);
lock              100 kernel/pipe.c    release(&pi->lock);
lock              112 kernel/pipe.c    acquire(&pi->lock);
lock              115 kernel/pipe.c        release(&pi->lock);
lock              118 kernel/pipe.c      sleep(&pi->nread, &pi->lock); //DOC: piperead-sleep
lock              128 kernel/pipe.c    release(&pi->lock);
lock               22 kernel/printf.c   struct spinlock lock;
lock               72 kernel/printf.c     acquire(&pr.lock);
lock              157 kernel/printf.c     release(&pr.lock);
lock              176 kernel/printf.c   initlock(&pr.lock, "pr");
lock               55 kernel/proc.c        initlock(&p->lock, "proc");
lock              115 kernel/proc.c      acquire(&p->lock);
lock              119 kernel/proc.c        release(&p->lock);
lock              131 kernel/proc.c      release(&p->lock);
lock              139 kernel/proc.c      release(&p->lock);
lock              254 kernel/proc.c    release(&p->lock);
lock              294 kernel/proc.c      release(&np->lock);
lock              315 kernel/proc.c    release(&np->lock);
lock              321 kernel/proc.c    acquire(&np->lock);
lock              323 kernel/proc.c    release(&np->lock);
lock              376 kernel/proc.c    acquire(&p->lock);
lock              405 kernel/proc.c          acquire(&pp->lock);
lock              413 kernel/proc.c              release(&pp->lock);
lock              418 kernel/proc.c            release(&pp->lock);
lock              422 kernel/proc.c          release(&pp->lock);
lock              459 kernel/proc.c        acquire(&p->lock);
lock              473 kernel/proc.c        release(&p->lock);
lock              496 kernel/proc.c    if(!holding(&p->lock))
lock              515 kernel/proc.c    acquire(&p->lock);
lock              518 kernel/proc.c    release(&p->lock);
lock              529 kernel/proc.c    release(&myproc()->lock);
lock              559 kernel/proc.c    acquire(&p->lock);  //DOC: sleeplock1
lock              572 kernel/proc.c    release(&p->lock);
lock              585 kernel/proc.c        acquire(&p->lock);
lock              589 kernel/proc.c        release(&p->lock);
lock              603 kernel/proc.c      acquire(&p->lock);
lock              610 kernel/proc.c        release(&p->lock);
lock              613 kernel/proc.c      release(&p->lock);
lock              621 kernel/proc.c    acquire(&p->lock);
lock              623 kernel/proc.c    release(&p->lock);
lock              631 kernel/proc.c    acquire(&p->lock);
lock              633 kernel/proc.c    release(&p->lock);
lock               86 kernel/proc.h    struct spinlock lock;