xv6/sleeplock.h

11 lines
273 B
C
Raw Permalink Normal View History

2023-01-04 17:04:31 +01: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
};