| 1 | // Long-term locks for processes |
|---|---|
| 2 | struct sleeplock { |
| 3 | uint locked; // Is the lock held? |
| 4 | struct spinlock lk; // spinlock protecting this sleep lock |
| 5 | |
| 6 | // For debugging: |
| 7 | char *name; // Name of lock. |
| 8 | int pid; // Process holding lock |
| 9 | }; |
| 10 | |
| 11 |