locked 18 sleeplock.c lk->locked = 0; locked 26 sleeplock.c while (lk->locked) { locked 29 sleeplock.c lk->locked = 1; locked 38 sleeplock.c lk->locked = 0; locked 50 sleeplock.c r = lk->locked && (lk->pid == myproc()->pid); locked 3 sleeplock.h uint locked; // Is the lock held? locked 16 spinlock.c lk->locked = 0; locked 32 spinlock.c while(xchg(&lk->locked, 1) != 0) locked 65 spinlock.c asm volatile("movl $0, %0" : "+m" (lk->locked) : ); locked 94 spinlock.c r = lock->locked && lock->cpu == mycpu(); locked 3 spinlock.h uint locked; // Is the lock held?