locked 17 kernel/sleeplock.c lk->locked = 0; locked 25 kernel/sleeplock.c while (lk->locked) { locked 28 kernel/sleeplock.c lk->locked = 1; locked 37 kernel/sleeplock.c lk->locked = 0; locked 49 kernel/sleeplock.c r = lk->locked && (lk->pid == myproc()->pid); locked 3 kernel/sleeplock.h uint locked; // Is the lock held? locked 15 kernel/spinlock.c lk->locked = 0; locked 32 kernel/spinlock.c while(__sync_lock_test_and_set(&lk->locked, 1) != 0) locked 69 kernel/spinlock.c __sync_lock_release(&lk->locked); locked 80 kernel/spinlock.c r = (lk->locked && lk->cpu == mycpu()); locked 3 kernel/spinlock.h uint locked; // Is the lock held?