Lines Matching defs:semaphore
2 * linux/include/asm-arm/semaphore.h
15 struct semaphore {
40 struct semaphore name = __SEMAPHORE_INIT(name,count)
45 static inline void sema_init(struct semaphore *sem, int val)
55 static inline void init_MUTEX(struct semaphore *sem)
60 static inline void init_MUTEX_LOCKED(struct semaphore *sem)
73 extern void __down(struct semaphore * sem);
74 extern int __down_interruptible(struct semaphore * sem);
75 extern int __down_trylock(struct semaphore * sem);
76 extern void __up(struct semaphore * sem);
82 static inline void down(struct semaphore * sem)
95 static inline int down_interruptible (struct semaphore * sem)
104 static inline int down_trylock(struct semaphore *sem)
115 * the semaphore was negative (== somebody was waiting on it).
119 static inline void up(struct semaphore * sem)
128 static inline int sem_getcount(struct semaphore *sem)