diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2023-04-10 15:54:58 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2023-04-16 10:45:58 +0000 |
commit | 41959beeae1f463ab0421510cb28f6d77e57a61a (patch) | |
tree | 86e1795437d7ca48eb9ff1f8a77611024ed6a6ba /sys/sys | |
parent | 074babfb2812c12caf99e3286f0a6c688ecf45bf (diff) | |
download | src-41959beeae1f463ab0421510cb28f6d77e57a61a.tar.gz src-41959beeae1f463ab0421510cb28f6d77e57a61a.zip |
Add witness_is_owned(9)
(cherry picked from commit 75fc6f86c38807f1fb305c065c6affcf7617b029)
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/lock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h index 2db38f9df89a..4031f20946c0 100644 --- a/sys/sys/lock.h +++ b/sys/sys/lock.h @@ -237,6 +237,7 @@ int witness_list_locks(struct lock_list_entry **, int (*)(const char *, ...)); int witness_warn(int, struct lock_object *, const char *, ...); void witness_assert(const struct lock_object *, int, const char *, int); +int witness_is_owned(const struct lock_object *lock); void witness_display_spinlock(struct lock_object *, struct thread *, int (*)(const char *, ...)); int witness_line(struct lock_object *); |