summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-23 15:29:24 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:53:35 +0100
commitdb7bae79dedbbc06bf268d0a01785d52eab3876f (patch)
tree4b692585817e15a22b259f6829ff78d6fb2cfc5b
parent49b56cb94bd76e304129de71f53a6f7a5cfabed3 (diff)
vm: move forward declarations into a header file
* vm/vm_object.c (memory_object_release, vm_object_deactivate_pages, vm_object_copy_delayed): Remove forward declarations. * vm/vm_object.h (memory_object_release, vm_object_deactivate_pages, vm_object_copy_delayed): Add prototypes.
-rw-r--r--vm/vm_object.c10
-rw-r--r--vm/vm_object.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/vm/vm_object.c b/vm/vm_object.c
index 3461b23..e1264f1 100644
--- a/vm/vm_object.c
+++ b/vm/vm_object.c
@@ -59,14 +59,6 @@
#include <ddb/db_output.h>
#endif /* MACH_KDB */
-
-void memory_object_release(
- ipc_port_t pager,
- pager_request_t pager_request,
- ipc_port_t pager_name); /* forward */
-
-void vm_object_deactivate_pages(vm_object_t);
-
/*
* Virtual memory objects maintain the actual data
* associated with allocated virtual memory. A given
@@ -1239,8 +1231,6 @@ kern_return_t vm_object_copy_slowly(
* The object should be unlocked on entry and exit.
*/
-vm_object_t vm_object_copy_delayed(); /* forward declaration */
-
boolean_t vm_object_copy_temporary(
vm_object_t *_object, /* INOUT */
vm_offset_t *_offset, /* INOUT */
diff --git a/vm/vm_object.h b/vm/vm_object.h
index adeff65..5c42f56 100644
--- a/vm/vm_object.h
+++ b/vm/vm_object.h
@@ -245,6 +245,16 @@ extern boolean_t vm_object_coalesce(
extern void vm_object_pager_wakeup(ipc_port_t pager);
+void memory_object_release(
+ ipc_port_t pager,
+ pager_request_t pager_request,
+ ipc_port_t pager_name);
+
+void vm_object_deactivate_pages(vm_object_t);
+
+vm_object_t vm_object_copy_delayed(
+ vm_object_t src_object);
+
/*
* Event waiting handling
*/