summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/defs.h b/defs.h
index 19d559b..8231159 100644
--- a/defs.h
+++ b/defs.h
@@ -5,6 +5,7 @@ struct inode;
struct pipe;
struct proc;
struct spinlock;
+struct sleeplock;
struct stat;
struct superblock;
@@ -129,6 +130,10 @@ void initlock(struct spinlock*, char*);
void release(struct spinlock*);
void pushcli(void);
void popcli(void);
+void initsleeplock(struct sleeplock*);
+void acquire_sleeplock(struct sleeplock*,struct spinlock*);
+void release_sleeplock(struct sleeplock*);
+int acquired_sleeplock(struct sleeplock*);
// string.c
int memcmp(const void*, const void*, uint);