xv6-riscv-kernel/kernel/sleeplock.h

11 lines
264 B
C
Raw Normal View History

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