Lines Matching defs:semaphore
18 struct semaphore {
53 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
58 static inline void sema_init (struct semaphore *sem, int val)
68 static inline void init_MUTEX (struct semaphore *sem)
73 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
78 asmlinkage void __down(struct semaphore * sem);
79 asmlinkage int __down_interruptible(struct semaphore * sem);
80 asmlinkage int __down_trylock(struct semaphore * sem);
81 asmlinkage void __up(struct semaphore * sem);
83 static inline void down(struct semaphore * sem)
93 * Interruptible try to acquire a semaphore. If we obtained
96 static inline int down_interruptible(struct semaphore * sem)
129 static inline int down_trylock(struct semaphore * sem)
162 * the semaphore was negative (== somebody was waiting on it).
164 static inline void up(struct semaphore * sem)
173 static inline int sem_getcount(struct semaphore *sem)