summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-08-24 07:15:14 +0000
committeralc <alc@FreeBSD.org>2002-08-24 07:15:14 +0000
commit74017690361953fa0aea9a75ef90227b7368b65b (patch)
treeab246bc8e3d733c42c22c6b9f4567dae39d2cd15 /sys/vm/vm_object.h
parentc558abdba79c9fbb9dbb77e9b5d0f6c3f97f7888 (diff)
downloadFreeBSD-src-74017690361953fa0aea9a75ef90227b7368b65b.zip
FreeBSD-src-74017690361953fa0aea9a75ef90227b7368b65b.tar.gz
o Resurrect vm_object_lock() and vm_object_unlock() from revision 1.19.
(For now, they simply acquire and release Giant.)
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 418c876..aa1008b 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -71,6 +71,9 @@
#ifndef _VM_OBJECT_
#define _VM_OBJECT_
+#include <sys/param.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
#include <sys/queue.h>
enum obj_type { OBJT_DEFAULT, OBJT_SWAP, OBJT_VNODE, OBJT_DEVICE, OBJT_PHYS,
@@ -171,6 +174,9 @@ extern vm_object_t kmem_object;
#endif /* _KERNEL */
#ifdef _KERNEL
+#define vm_object_lock(object) mtx_lock(&Giant)
+#define vm_object_unlock(object) mtx_unlock(&Giant)
+
void vm_freeze_copyopts(vm_object_t, vm_pindex_t, vm_pindex_t);
void vm_object_set_flag(vm_object_t object, u_short bits);
OpenPOWER on IntegriCloud