first commit

This commit is contained in:
2025-02-21 08:39:49 +08:00
commit 6aa7311ce6
80 changed files with 12752 additions and 0 deletions

10
kernel/sleeplock.h Normal file
View File

@@ -0,0 +1,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
};