summaryrefslogtreecommitdiff
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-04-22 04:47:29 +0000
committerAlan Cox <alc@FreeBSD.org>2003-04-22 04:47:29 +0000
commit1c067f7ebc5182a9d27ce9b46fea23ece28ad78b (patch)
tree59d9eae26e83edd7944b83821cd58df64a37f950 /sys/vm/vm_object.h
parentf73a5a7f66901d2d6c543649c87b8fa758f8473f (diff)
Notes
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 9dd0ab95d1be..f4890bcaf895 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -173,6 +173,7 @@ extern vm_object_t kmem_object;
#define VM_OBJECT_LOCK(object) mtx_lock(&(object)->mtx)
#define VM_OBJECT_LOCK_ASSERT(object, type) \
mtx_assert(&(object)->mtx, (type))
+#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
#define vm_object_lock(object) \