Searched refs:semaphore (Results 1 – 25 of 28) sorted by relevance
12
16 struct semaphore { struct30 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) argument32 static inline void sema_init(struct semaphore *sem, int val) in sema_init()35 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); in sema_init()39 extern void down(struct semaphore *sem);40 extern int __must_check down_interruptible(struct semaphore *sem);41 extern int __must_check down_killable(struct semaphore *sem);42 extern int __must_check down_trylock(struct semaphore *sem);43 extern int __must_check down_timeout(struct semaphore *sem, long jiffies);44 extern void up(struct semaphore *sem);
136 struct semaphore csem; /* Raised when loop idle */139 struct semaphore osem; /* Raised when outpacket dispatched */143 struct semaphore isem; /* Raised when a packet arrives */
71 struct semaphore *semaphore; /* Semaphore to sleep on. */ member
176 struct semaphore buf_lock;
41 struct semaphore dev_lock;
185 struct semaphore irq;
571 struct semaphore driver_input_lock; /* protects the current driver */
44 struct semaphore;
37 struct semaphore sd_rbs; /* semaphore for read buffer */38 struct semaphore sd_wbs; /* semaphore for write buffer */
141 This read/write semaphore protects against concurrent access to the154 This read/write semaphore protects against concurrent access to the156 In read-only path, write-semaphore is too much exclusion. It's enough157 by read-semaphore. But you must hold write-semaphore when updating,162 when updating such a object is necessary under holding read semaphore.163 For example, do_jffs2_getxattr() holds read-semaphore to scan xref and164 xdatum at first. But it retries this process with holding write-semaphore165 after release read-semaphore, if it's necessary to load name/value pair
43 struct semaphore lock; /* protects the state of the mux */
29 struct semaphore limit_sem;
85 struct semaphore lock;
46 struct semaphore i_link_lock; /* Protects internal inode access. */47 struct semaphore i_ext_lock; /* Protects internal inode access. */
147 struct semaphore b_sema; /* semaphore for lockables */
115 static struct semaphore prestart_sem;116 static struct semaphore startup_sem = __SEMAPHORE_INITIALIZER(startup_sem, 0);
92 static struct semaphore semOperations; // lock all operations and94 static struct semaphore sem_exit; // make sure polling thread goes away
323 struct semaphore sem;324 struct semaphore pages_sem;
27 static struct semaphore sem;
179 struct semaphore sem;
215 struct semaphore wr_sem;245 struct semaphore gc_sem;
791 struct semaphore caw_sem;
838 struct semaphore np_login_sem;
38 struct semaphore frontends_lock;54 struct semaphore socket_lock;
109 struct semaphore sem;