Lines Matching defs:semaphore
2 * linux/include/asm-arm26/semaphore.h
15 struct semaphore {
29 struct semaphore name = __SEMAPHORE_INIT(name,count)
34 static inline void sema_init(struct semaphore *sem, int val)
41 static inline void init_MUTEX(struct semaphore *sem)
46 static inline void init_MUTEX_LOCKED(struct semaphore *sem)
59 extern void __down(struct semaphore * sem);
60 extern int __down_interruptible(struct semaphore * sem);
61 extern int __down_trylock(struct semaphore * sem);
62 extern void __up(struct semaphore * sem);
68 static inline void down(struct semaphore * sem)
78 static inline int down_interruptible (struct semaphore * sem)
84 static inline int down_trylock(struct semaphore *sem)
91 * the semaphore was negative (== somebody was waiting on it).
95 static inline void up(struct semaphore * sem)