Lines Matching defs:semaphore
23 struct semaphore {
58 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
63 static inline void sema_init (struct semaphore *sem, int val)
73 static inline void init_MUTEX (struct semaphore *sem)
78 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
83 asmlinkage void __down(struct semaphore * sem);
84 asmlinkage int __down_interruptible(struct semaphore * sem);
85 asmlinkage int __down_trylock(struct semaphore * sem);
86 asmlinkage void __up(struct semaphore * sem);
88 static inline void down(struct semaphore * sem)
98 * Interruptible try to acquire a semaphore. If we obtained
101 static inline int down_interruptible(struct semaphore * sem)
116 * Non-blockingly attempt to down() a semaphore.
119 static inline int down_trylock(struct semaphore * sem)
151 static inline int down_trylock(struct semaphore * sem)
186 * the semaphore was negative (== somebody was waiting on it).
188 static inline void up(struct semaphore * sem)
197 static inline int sem_getcount(struct semaphore *sem)