Lines Matching full:lock
52 .Nd kernel shared/exclusive lock
117 shared/exclusive lock.
131 to ignore this lock.
133 Do not profile this lock.
138 Do not log any operations for this lock via
153 The lock
157 Threads acquire and release a shared lock by calling
166 Threads acquire and release an exclusive lock by calling
175 A thread can attempt to upgrade a currently held shared lock to an exclusive
176 lock by calling
178 A thread that has an exclusive lock can downgrade it to a shared lock by
185 will return 0 if the shared/exclusive lock cannot be acquired immediately;
186 otherwise the shared/exclusive lock will be acquired and a non-zero value will
190 will return 0 if the shared lock cannot be upgraded to an exclusive lock
191 immediately; otherwise the exclusive lock will be acquired and a non-zero value
201 A thread can atomically release a shared/exclusive lock while waiting for an
222 Assert that the current thread has either a shared or an exclusive lock on the
224 lock pointed to by the first argument.
226 Assert that the current thread has a shared lock on the
228 lock pointed to by
231 Assert that the current thread has an exclusive lock on the
233 lock pointed to
236 Assert that the current thread has no lock on the
238 lock pointed to
251 Assert that the current thread has a recursed lock on
254 Assert that the current thread does not have a recursed lock on
259 will return a pointer to the thread which currently holds an exclusive lock on
261 If no thread holds an exclusive lock on
268 will return non-zero if the current thread holds the exclusive lock;
277 Algorithms that are aware of what state the lock is in should use either
286 lock.
292 structures associated with the lock and the sysinit routine.
297 lock using
300 A thread may not hold both a shared lock and an exclusive lock on the same
301 lock simultaneously;
304 A thread may hold a shared or exclusive lock on an
306 lock while sleeping.
309 lock may not be acquired while holding a mutex.
312 lock while another thread blocked on the same
314 lock after acquiring a mutex, then the second thread would effectively
317 .Xr lock 9 ,
326 cannot assert whether the current thread does or does not hold a shared lock.
332 thread holds a shared lock.
333 They cannot ensure that the current thread holds a shared lock.
336 can only assert that the current thread does not hold an exclusive lock.