lock               30 bio.c            struct spinlock lock;
lock               43 bio.c            initlock(&bcache.lock, "bcache");
lock               52 bio.c              initsleeplock(&b->lock, "buffer");
lock               66 bio.c            acquire(&bcache.lock);
lock               72 bio.c                release(&bcache.lock);
lock               73 bio.c                acquiresleep(&b->lock);
lock               87 bio.c                release(&bcache.lock);
lock               88 bio.c                acquiresleep(&b->lock);
lock              112 bio.c            if(!holdingsleep(&b->lock))
lock              123 bio.c            if(!holdingsleep(&b->lock))
lock              126 bio.c            releasesleep(&b->lock);
lock              128 bio.c            acquire(&bcache.lock);
lock              140 bio.c            release(&bcache.lock);
lock                5 buf.h            struct sleeplock lock;
lock               23 console.c        struct spinlock lock;
lock               63 console.c          acquire(&cons.lock);
lock              103 console.c          release(&cons.lock);
lock              196 console.c        acquire(&cons.lock);
lock              229 console.c        release(&cons.lock);
lock              243 console.c        acquire(&cons.lock);
lock              247 console.c              release(&cons.lock);
lock              251 console.c            sleep(&input.r, &cons.lock);
lock              267 console.c        release(&cons.lock);
lock              279 console.c        acquire(&cons.lock);
lock              282 console.c        release(&cons.lock);
lock              291 console.c        initlock(&cons.lock, "console");
lock               15 file.c           struct spinlock lock;
lock               22 file.c           initlock(&ftable.lock, "ftable");
lock               31 file.c           acquire(&ftable.lock);
lock               35 file.c               release(&ftable.lock);
lock               39 file.c           release(&ftable.lock);
lock               47 file.c           acquire(&ftable.lock);
lock               51 file.c           release(&ftable.lock);
lock               61 file.c           acquire(&ftable.lock);
lock               65 file.c             release(&ftable.lock);
lock               71 file.c           release(&ftable.lock);
lock               17 file.h           struct sleeplock lock; // protects everything below here
lock              167 fs.c             struct spinlock lock;
lock              176 fs.c             initlock(&icache.lock, "icache");
lock              178 fs.c               initsleeplock(&icache.inode[i].lock, "inode");
lock              246 fs.c             acquire(&icache.lock);
lock              253 fs.c                 release(&icache.lock);
lock              269 fs.c             release(&icache.lock);
lock              279 fs.c             acquire(&icache.lock);
lock              281 fs.c             release(&icache.lock);
lock              296 fs.c             acquiresleep(&ip->lock);
lock              318 fs.c             if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
lock              321 fs.c             releasesleep(&ip->lock);
lock              334 fs.c             acquiresleep(&ip->lock);
lock              336 fs.c               acquire(&icache.lock);
lock              338 fs.c               release(&icache.lock);
lock              347 fs.c             releasesleep(&ip->lock);
lock              349 fs.c             acquire(&icache.lock);
lock              351 fs.c             release(&icache.lock);
lock              142 ide.c            if(!holdingsleep(&b->lock))
lock               21 kalloc.c         struct spinlock lock;
lock               34 kalloc.c         initlock(&kmem.lock, "kmem");
lock               71 kalloc.c           acquire(&kmem.lock);
lock               76 kalloc.c           release(&kmem.lock);
lock               88 kalloc.c           acquire(&kmem.lock);
lock               93 kalloc.c           release(&kmem.lock);
lock               40 log.c            struct spinlock lock;
lock               60 log.c            initlock(&log.lock, "log");
lock              128 log.c            acquire(&log.lock);
lock              131 log.c                sleep(&log, &log.lock);
lock              134 log.c                sleep(&log, &log.lock);
lock              137 log.c                release(&log.lock);
lock              150 log.c            acquire(&log.lock);
lock              163 log.c            release(&log.lock);
lock              169 log.c              acquire(&log.lock);
lock              172 log.c              release(&log.lock);
lock              223 log.c            acquire(&log.lock);
lock              232 log.c            release(&log.lock);
lock               43 memide.c         if(!holdingsleep(&b->lock))
lock               14 pipe.c           struct spinlock lock;
lock               37 pipe.c           initlock(&p->lock, "pipe");
lock               62 pipe.c           acquire(&p->lock);
lock               71 pipe.c             release(&p->lock);
lock               74 pipe.c             release(&p->lock);
lock               83 pipe.c           acquire(&p->lock);
lock               87 pipe.c                 release(&p->lock);
lock               91 pipe.c               sleep(&p->nwrite, &p->lock);  //DOC: pipewrite-sleep
lock               96 pipe.c           release(&p->lock);
lock              105 pipe.c           acquire(&p->lock);
lock              108 pipe.c               release(&p->lock);
lock              111 pipe.c             sleep(&p->nread, &p->lock); //DOC: piperead-sleep
lock              119 pipe.c           release(&p->lock);
lock               11 proc.c           struct spinlock lock;
lock               26 proc.c           initlock(&ptable.lock, "ptable");
lock               79 proc.c           acquire(&ptable.lock);
lock               85 proc.c           release(&ptable.lock);
lock               92 proc.c           release(&ptable.lock);
lock              149 proc.c           acquire(&ptable.lock);
lock              153 proc.c           release(&ptable.lock);
lock              215 proc.c           acquire(&ptable.lock);
lock              219 proc.c           release(&ptable.lock);
lock              250 proc.c           acquire(&ptable.lock);
lock              279 proc.c           acquire(&ptable.lock);
lock              298 proc.c                 release(&ptable.lock);
lock              305 proc.c               release(&ptable.lock);
lock              310 proc.c             sleep(curproc, &ptable.lock);  //DOC: wait-sleep
lock              334 proc.c             acquire(&ptable.lock);
lock              353 proc.c             release(&ptable.lock);
lock              371 proc.c           if(!holding(&ptable.lock))
lock              388 proc.c           acquire(&ptable.lock);  //DOC: yieldlock
lock              391 proc.c           release(&ptable.lock);
lock              401 proc.c           release(&ptable.lock);
lock              434 proc.c           if(lk != &ptable.lock){  //DOC: sleeplock0
lock              435 proc.c             acquire(&ptable.lock);  //DOC: sleeplock1
lock              448 proc.c           if(lk != &ptable.lock){  //DOC: sleeplock2
lock              449 proc.c             release(&ptable.lock);
lock              471 proc.c           acquire(&ptable.lock);
lock              473 proc.c           release(&ptable.lock);
lock              484 proc.c           acquire(&ptable.lock);
lock              491 proc.c               release(&ptable.lock);
lock              495 proc.c           release(&ptable.lock);
lock               90 spinlock.c     holding(struct spinlock *lock)
lock               94 spinlock.c       r = lock->locked && lock->cpu == mycpu();