summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-04-22 04:47:29 +0000
committeralc <alc@FreeBSD.org>2003-04-22 04:47:29 +0000
commitec81329f325a58131e2d28c2c9c6b252d55e4b2e (patch)
tree59d9eae26e83edd7944b83821cd58df64a37f950 /sys/vm/vm_object.h
parentef1f3b42fa32dd0852a62131211243529521bc43 (diff)
downloadFreeBSD-src-ec81329f325a58131e2d28c2c9c6b252d55e4b2e.zip
FreeBSD-src-ec81329f325a58131e2d28c2c9c6b252d55e4b2e.tar.gz
Add VM_OBJECT_LOCKED().
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 9dd0ab9..f4890bc 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) \
OpenPOWER on IntegriCloud