Home
last modified time | relevance | path

Searched refs:locked (Results 1 – 5 of 5) sorted by relevance

/xv6-public/
H A Dsleeplock.c18 lk->locked = 0; in initsleeplock()
26 while (lk->locked) { in acquiresleep()
29 lk->locked = 1; in acquiresleep()
38 lk->locked = 0; in releasesleep()
50 r = lk->locked && (lk->pid == myproc()->pid); in holdingsleep()
H A Dspinlock.c16 lk->locked = 0; in initlock()
32 while(xchg(&lk->locked, 1) != 0) in acquire()
65 asm volatile("movl $0, %0" : "+m" (lk->locked) : ); in release()
94 r = lock->locked && lock->cpu == mycpu(); in holding()
H A Dsleeplock.h3 uint locked; // Is the lock held? member
H A Dspinlock.h3 uint locked; // Is the lock held? member
H A DTRICKS101 to memory before the write of lk->locked = 0 in
103 will observe CPU0's write of lk->locked = 0 only