xv6-65oo2/kernel/sleeplock.h

11 lines
265 B
C
Raw Normal View History

2016-09-12 01:01:24 +00:00
// Long-term locks for processes
struct sleeplock {
uint locked; // Is the lock held?
struct spinlock lk; // spinlock protecting this sleep lock
// For debugging:
char *name; // Name of lock.
int pid; // Process holding lock
};