aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/semaphore.h')
-rw-r--r--include/linux/semaphore.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h
index 5310d27abd2a..69e3f57661ec 100644
--- a/include/linux/semaphore.h
+++ b/include/linux/semaphore.h
@@ -49,4 +49,13 @@ extern int __must_check down_trylock(struct semaphore *sem);
49extern int __must_check down_timeout(struct semaphore *sem, long jiffies); 49extern int __must_check down_timeout(struct semaphore *sem, long jiffies);
50extern void up(struct semaphore *sem); 50extern void up(struct semaphore *sem);
51 51
52extern void __down(struct semaphore *sem);
53extern void __up(struct semaphore *sem);
54
55struct semaphore_waiter {
56 struct list_head list;
57 struct task_struct *task;
58 int up;
59};
60
52#endif /* __LINUX_SEMAPHORE_H */ 61#endif /* __LINUX_SEMAPHORE_H */