lock 31 bio.c struct spinlock lock; lock 44 bio.c initlock(&bcache.lock, "bcache"); lock 67 bio.c acquire(&bcache.lock); lock 75 bio.c release(&bcache.lock); lock 78 bio.c sleep(b, &bcache.lock); lock 91 bio.c release(&bcache.lock); lock 129 bio.c acquire(&bcache.lock); lock 141 bio.c release(&bcache.lock); lock 22 console.c struct spinlock lock; lock 62 console.c acquire(&cons.lock); lock 102 console.c release(&cons.lock); lock 178 console.c struct spinlock lock; lock 192 console.c acquire(&input.lock); lock 224 console.c release(&input.lock); lock 235 console.c acquire(&input.lock); lock 239 console.c release(&input.lock); lock 243 console.c sleep(&input.r, &input.lock); lock 259 console.c release(&input.lock); lock 271 console.c acquire(&cons.lock); lock 274 console.c release(&cons.lock); lock 283 console.c initlock(&cons.lock, "console"); lock 284 console.c initlock(&input.lock, "input"); lock 14 file.c struct spinlock lock; lock 21 file.c initlock(&ftable.lock, "ftable"); lock 30 file.c acquire(&ftable.lock); lock 34 file.c release(&ftable.lock); lock 38 file.c release(&ftable.lock); lock 46 file.c acquire(&ftable.lock); lock 50 file.c release(&ftable.lock); lock 60 file.c acquire(&ftable.lock); lock 64 file.c release(&ftable.lock); lock 70 file.c release(&ftable.lock); lock 158 fs.c struct spinlock lock; lock 165 fs.c initlock(&icache.lock, "icache"); lock 225 fs.c acquire(&icache.lock); lock 232 fs.c release(&icache.lock); lock 248 fs.c release(&icache.lock); lock 258 fs.c acquire(&icache.lock); lock 260 fs.c release(&icache.lock); lock 275 fs.c acquire(&icache.lock); lock 277 fs.c sleep(ip, &icache.lock); lock 279 fs.c release(&icache.lock); lock 304 fs.c acquire(&icache.lock); lock 307 fs.c release(&icache.lock); lock 320 fs.c acquire(&icache.lock); lock 326 fs.c release(&icache.lock); lock 330 fs.c acquire(&icache.lock); lock 335 fs.c release(&icache.lock); lock 20 kalloc.c struct spinlock lock; lock 33 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 39 log.c struct spinlock lock; lock 59 log.c initlock(&log.lock, "log"); lock 127 log.c acquire(&log.lock); lock 130 log.c sleep(&log, &log.lock); lock 133 log.c sleep(&log, &log.lock); lock 136 log.c release(&log.lock); lock 149 log.c acquire(&log.lock); lock 160 log.c release(&log.lock); lock 166 log.c acquire(&log.lock); lock 169 log.c release(&log.lock); lock 220 log.c acquire(&log.lock); lock 229 log.c release(&log.lock); lock 13 pipe.c struct spinlock lock; lock 36 pipe.c initlock(&p->lock, "pipe"); lock 61 pipe.c acquire(&p->lock); lock 70 pipe.c release(&p->lock); lock 73 pipe.c release(&p->lock); lock 82 pipe.c acquire(&p->lock); lock 86 pipe.c release(&p->lock); lock 90 pipe.c sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep lock 95 pipe.c release(&p->lock); lock 104 pipe.c acquire(&p->lock); lock 107 pipe.c release(&p->lock); lock 110 pipe.c sleep(&p->nread, &p->lock); //DOC: piperead-sleep lock 118 pipe.c release(&p->lock); lock 11 proc.c struct spinlock lock; lock 26 proc.c initlock(&ptable.lock, "ptable"); lock 40 proc.c acquire(&ptable.lock); lock 44 proc.c release(&ptable.lock); lock 50 proc.c release(&ptable.lock); lock 162 proc.c acquire(&ptable.lock); lock 164 proc.c release(&ptable.lock); lock 194 proc.c acquire(&ptable.lock); lock 222 proc.c acquire(&ptable.lock); lock 241 proc.c release(&ptable.lock); lock 248 proc.c release(&ptable.lock); lock 253 proc.c sleep(proc, &ptable.lock); //DOC: wait-sleep lock 275 proc.c acquire(&ptable.lock); lock 293 proc.c release(&ptable.lock); lock 305 proc.c if(!holding(&ptable.lock)) lock 322 proc.c acquire(&ptable.lock); //DOC: yieldlock lock 325 proc.c release(&ptable.lock); lock 335 proc.c release(&ptable.lock); lock 366 proc.c if(lk != &ptable.lock){ //DOC: sleeplock0 lock 367 proc.c acquire(&ptable.lock); //DOC: sleeplock1 lock 380 proc.c if(lk != &ptable.lock){ //DOC: sleeplock2 lock 381 proc.c release(&ptable.lock); lock 403 proc.c acquire(&ptable.lock); lock 405 proc.c release(&ptable.lock); lock 416 proc.c acquire(&ptable.lock); lock 423 proc.c release(&ptable.lock); lock 427 proc.c release(&ptable.lock); lock 86 spinlock.c holding(struct spinlock *lock) lock 88 spinlock.c return lock->locked && lock->cpu == cpu;