summaryrefslogtreecommitdiff
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-04-13 18:39:47 +0000
committerAlan Cox <alc@FreeBSD.org>2003-04-13 18:39:47 +0000
commitfdff41609d5c2f5d9be78e7451a81f8e22b505bf (patch)
treeb519a4abb4b0fb191e5bc4094f88700a2997529b /sys/vm/vm_object.h
parent692ebfe975d47cf9c1c64f3e8c49621dbd1edd51 (diff)
Notes
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 467d7f0306e1..4f4f77b9431c 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -170,6 +170,9 @@ extern struct mtx vm_object_list_mtx; /* lock for object list and count */
extern vm_object_t kernel_object; /* the single kernel object */
extern vm_object_t kmem_object;
+#define VM_OBJECT_LOCK(object) mtx_lock(&(object)->mtx)
+#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
+
#define vm_object_lock(object) \
mtx_lock((object) == kmem_object ? &kmem_object->mtx : &Giant)
#define vm_object_unlock(object) \