Lines Matching defs:semaphore
2 * include/asm-s390/semaphore.h
7 * Derived from "include/asm-i386/semaphore.h"
19 struct semaphore {
35 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
40 static inline void sema_init (struct semaphore *sem, int val)
42 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val);
45 static inline void init_MUTEX (struct semaphore *sem)
50 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
60 asmlinkage void __down(struct semaphore * sem);
61 asmlinkage int __down_interruptible(struct semaphore * sem);
62 asmlinkage int __down_trylock(struct semaphore * sem);
63 asmlinkage void __up(struct semaphore * sem);
65 static inline void down(struct semaphore * sem)
71 static inline int down_interruptible(struct semaphore * sem)
80 static inline int down_trylock(struct semaphore * sem)
89 static inline void up(struct semaphore * sem)
95 static inline int sem_getcount(struct semaphore *sem)