Lines Matching defs:semaphore
12 struct semaphore {
26 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
31 static inline void sema_init (struct semaphore *sem, int val)
38 static inline void init_MUTEX (struct semaphore *sem)
43 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
48 extern void __down(struct semaphore * sem);
49 extern int __down_interruptible(struct semaphore * sem);
50 extern int __down_trylock(struct semaphore * sem);
51 extern void __up(struct semaphore * sem);
53 static inline void down(struct semaphore * sem)
87 static inline int down_interruptible(struct semaphore * sem)
124 static inline int down_trylock(struct semaphore * sem)
159 static inline void up(struct semaphore * sem)