summaryrefslogtreecommitdiff
path: root/vm/vm_object.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_object.h')
-rw-r--r--vm/vm_object.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/vm/vm_object.h b/vm/vm_object.h
index 046937f2..9ffe711e 100644
--- a/vm/vm_object.h
+++ b/vm/vm_object.h
@@ -26,6 +26,7 @@
#include <stdint.h>
+#include <kern/init.h>
#include <kern/rdxtree.h>
#include <vm/vm_object_types.h>
#include <vm/vm_page.h>
@@ -33,11 +34,6 @@
struct vm_object;
/*
- * Initialize the vm_object module.
- */
-void vm_object_setup(void);
-
-/*
* Initialize a VM object.
*/
void vm_object_init(struct vm_object *object, uint64_t size);
@@ -75,4 +71,10 @@ void vm_object_remove(struct vm_object *object, uint64_t start, uint64_t end);
*/
struct vm_page * vm_object_lookup(struct vm_object *object, uint64_t offset);
+/*
+ * This init operation provides :
+ * - module fully initialized
+ */
+INIT_OP_DECLARE(vm_object_setup);
+
#endif /* _VM_OBJECT_H */