Lines Matching full:lock

53 .Fn lockinit "struct lock *lkp" "int prio" "const char *wmesg" "int timo" "int flags"
55 .Fn lockdestroy "struct lock *lkp"
57 .Fn lockmgr "struct lock *lkp" "u_int flags" "struct mtx *ilk"
59 .Fn lockmgr_args "struct lock *lkp" "u_int flags" "struct mtx *ilk" "const char *wmesg" "int prio" …
61 .Fn lockmgr_args_rw "struct lock *lkp" "u_int flags" "struct rwlock *ilk" "const char *wmesg" "int …
63 .Fn lockmgr_disown "struct lock *lkp"
65 .Fn lockmgr_disowned "const struct lock *lkp"
67 .Fn lockmgr_lock_flags "struct lock *lkp" "u_int flags" "struct lock_object *ilk" "const char *file…
69 .Fn lockmgr_printinfo "const struct lock *lkp"
71 .Fn lockmgr_recursed "const struct lock *lkp"
73 .Fn lockmgr_rw "struct lock *lkp" "u_int flags" "struct rwlock *ilk"
75 .Fn lockmgr_slock "struct lock *lkp" "u_int flags" "const char *file" "int line"
77 .Fn lockmgr_unlock "struct lock *lkp"
79 .Fn lockmgr_xlock "struct lock *lkp" "u_int flags" "const char *file" "int line"
81 .Fn lockstatus "const struct lock *lkp"
86 .Fn lockmgr_assert "const struct lock *lkp" "int what"
90 function is used to initialize a lock.
91 It must be called before any operation can be performed on a lock.
95 A pointer to the lock to initialize.
100 The lock message.
107 The flags the lock is to be initialized with:
112 Disable lock profiling for this lock.
118 to ignore this lock.
125 logging for this lock.
131 function is used to destroy a lock, and while it is called in a number of
148 A pointer to the lock to manipulate.
153 Acquire a shared lock.
154 If an exclusive lock is currently held,
158 Acquire an exclusive lock.
159 If an exclusive lock is already held, and
164 Downgrade exclusive lock to a shared lock.
165 Downgrading a shared lock is not permitted.
166 If an exclusive lock has been recursed, the system will
169 Upgrade a shared lock to an exclusive lock.
170 If this call fails, the shared lock is lost, even if the
173 During the upgrade, the shared lock could
175 Attempts to upgrade an exclusive lock will cause a
178 Try to upgrade a shared lock to an exclusive lock.
180 of the shared lock ownership.
182 Release the lock.
183 Releasing a lock that is not held can cause a
186 Wait for all activity on the lock to end, then mark it decommissioned.
187 This is used before freeing a lock that is part of a piece of memory that is
195 This can be used to test the lock.
205 Allow recursion on an exclusive lock.
206 For every lock there must be a release.
212 postpones serving further shared requests for shared-locked lock if there is
213 exclusive waiter, to avoid exclusive lock starvation.
214 But, if the thread requesting the shared lock already owns a shared lockmgr
215 lock, the request is granted even in presence of the parallel exclusive lock
220 flag can only be used by code which requests shared non-recursive lock.
223 This is safe since shared lock is guaranteed to not recurse, and is used
235 An interlock mutex for controlling group access to the lock.
278 arguments for lock tracing.
306 arguments for lock tracing.
312 if the lock is already held.
316 function returns true or false according to whether the lock is held by
321 function prints debugging information about the lock.
328 function returns true if the lock is recursed, 0
333 function returns the status of the lock in relation to the current thread.
349 Assert that the current thread has either a shared or an exclusive lock on the
351 lock pointed to by the first argument.
353 Assert that the current thread has a shared lock on the
355 lock pointed to by the first argument.
357 Assert that the current thread has an exclusive lock on the
359 lock pointed to by the first argument.
361 Assert that the current thread has no lock on the
363 lock pointed to by the first argument.
375 Assert that the current thread has a recursed lock on
378 Assert that the current thread does not have a recursed lock on
393 An exclusive lock is held by the current thread.
395 An exclusive lock is held by someone other than the current thread.
397 A shared lock is held.
399 The lock is not held by anyone.
409 was requested and another thread had already requested a lock upgrade.
414 operation was not able to upgrade the lock.
416 A shared lock was attempted while the thread already held the exclusive lock.
426 was set in the lock priority, and a signal was delivered during a sleep.
432 was set in the lock priority, a signal was delivered during a sleep,
454 Upgrade attempts that fail result in the loss of the lock that
457 exclusive lock, and a