Lines Matching refs:lock
64 void (*lc_assert)(const struct lock_object *lock, int what);
65 void (*lc_ddb_show)(const struct lock_object *lock);
66 void (*lc_lock)(struct lock_object *lock, uintptr_t how);
67 int (*lc_owner)(const struct lock_object *lock,
69 uintptr_t (*lc_unlock)(struct lock_object *lock);
97 #define LO_CLASSINDEX(lock) ((((lock)->lo_flags) & LO_CLASSMASK) >> LO_CLASSSHIFT) argument
98 #define LOCK_CLASS(lock) (lock_classes[LO_CLASSINDEX((lock))]) argument
257 #define WITNESS_INIT(lock, type) \ argument
258 witness_init((lock), (type))
260 #define WITNESS_DESTROY(lock) \ argument
261 witness_destroy(lock)
263 #define WITNESS_CHECKORDER(lock, flags, file, line, interlock) \ argument
264 witness_checkorder((lock), (flags), (file), (line), (interlock))
270 #define WITNESS_LOCK(lock, flags, file, line) \ argument
271 witness_lock((lock), (flags), (file), (line))
273 #define WITNESS_UPGRADE(lock, flags, file, line) \ argument
274 witness_upgrade((lock), (flags), (file), (line))
276 #define WITNESS_DOWNGRADE(lock, flags, file, line) \ argument
277 witness_downgrade((lock), (flags), (file), (line))
279 #define WITNESS_UNLOCK(lock, flags, file, line) \ argument
280 witness_unlock((lock), (flags), (file), (line))
282 #define WITNESS_CHECK(flags, lock, fmt, ...) \ argument
283 witness_warn((flags), (lock), (fmt), ## __VA_ARGS__)
285 #define WITNESS_WARN(flags, lock, fmt, ...) \ argument
286 witness_warn((flags), (lock), (fmt), ## __VA_ARGS__)
292 #define WITNESS_SAVE(lock, n) \ argument
293 witness_save((lock), &__CONCAT(n, __wf), &__CONCAT(n, __wl))
295 #define WITNESS_RESTORE(lock, n) \ argument
296 witness_restore((lock), __CONCAT(n, __wf), __CONCAT(n, __wl))
298 #define WITNESS_NORELEASE(lock) \ argument
299 witness_norelease(&(lock)->lock_object)
301 #define WITNESS_RELEASEOK(lock) \ argument
302 witness_releaseok(&(lock)->lock_object)
304 #define WITNESS_FILE(lock) \ argument
305 witness_file(lock)
307 #define WITNESS_LINE(lock) \ argument
308 witness_line(lock)
311 #define WITNESS_INIT(lock, type) (void)0 argument
312 #define WITNESS_DESTROY(lock) (void)0 argument
314 #define WITNESS_CHECKORDER(lock, flags, file, line, interlock) (void)0 argument
315 #define WITNESS_LOCK(lock, flags, file, line) (void)0 argument
316 #define WITNESS_UPGRADE(lock, flags, file, line) (void)0 argument
317 #define WITNESS_DOWNGRADE(lock, flags, file, line) (void)0 argument
318 #define WITNESS_UNLOCK(lock, flags, file, line) (void)0 argument
319 #define WITNESS_CHECK(flags, lock, fmt, ...) 0 argument
320 #define WITNESS_WARN(flags, lock, fmt, ...) (void)0 argument
322 #define WITNESS_SAVE(lock, n) (void)0 argument
323 #define WITNESS_RESTORE(lock, n) (void)0 argument
324 #define WITNESS_NORELEASE(lock) (void)0 argument
325 #define WITNESS_RELEASEOK(lock) (void)0 argument
326 #define WITNESS_FILE(lock) ("?") argument
327 #define WITNESS_LINE(lock) (0) argument