blob: 110e6f3d7f0ea289b5907ea4072bd5663d5734b2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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
};
|