bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 13/14] vm/vm_fault.c: move struct definition to a header file


From: Marin Ramesa
Subject: [PATCH 13/14] vm/vm_fault.c: move struct definition to a header file
Date: Mon, 2 Dec 2013 22:54:51 +0100

* vm/vm_fault.c (vm_fault_state): Move struct definition to vm/vm_fault.h.

---
 vm/vm_fault.c | 26 --------------------------
 vm/vm_fault.h | 24 ++++++++++++++++++++++++
 2 files changed, 24 insertions(+), 26 deletions(-)

diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index d0c7f96..0bde0fb 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -58,32 +58,6 @@
 #include <kern/pc_sample.h>
 #endif
 
-
-
-/*
- *     State needed by vm_fault_continue.
- *     This is a little hefty to drop directly
- *     into the thread structure.
- */
-typedef struct vm_fault_state {
-       struct vm_map *vmf_map;
-       vm_offset_t vmf_vaddr;
-       vm_prot_t vmf_fault_type;
-       boolean_t vmf_change_wiring;
-       void (*vmf_continuation)();
-       vm_map_version_t vmf_version;
-       boolean_t vmf_wired;
-       struct vm_object *vmf_object;
-       vm_offset_t vmf_offset;
-       vm_prot_t vmf_prot;
-
-       boolean_t vmfp_backoff;
-       struct vm_object *vmfp_object;
-       vm_offset_t vmfp_offset;
-       struct vm_page *vmfp_first_m;
-       vm_prot_t vmfp_access;
-} vm_fault_state_t;
-
 struct kmem_cache      vm_fault_state_cache;
 
 int            vm_object_absent_max = 50;
diff --git a/vm/vm_fault.h b/vm/vm_fault.h
index 0492ccf..a7769b2 100644
--- a/vm/vm_fault.h
+++ b/vm/vm_fault.h
@@ -38,6 +38,30 @@
 #include <vm/vm_types.h>
 
 /*
+ *     State needed by vm_fault_continue.
+ *     This is a little hefty to drop directly
+ *     into the thread structure.
+ */
+typedef struct vm_fault_state {
+       struct vm_map *vmf_map;
+       vm_offset_t vmf_vaddr;
+       vm_prot_t vmf_fault_type;
+       boolean_t vmf_change_wiring;
+       void (*vmf_continuation)();
+       vm_map_version_t vmf_version;
+       boolean_t vmf_wired;
+       struct vm_object *vmf_object;
+       vm_offset_t vmf_offset;
+       vm_prot_t vmf_prot;
+
+       boolean_t vmfp_backoff;
+       struct vm_object *vmfp_object;
+       vm_offset_t vmfp_offset;
+       struct vm_page *vmfp_first_m;
+       vm_prot_t vmfp_access;
+} vm_fault_state_t;
+
+/*
  *     Page fault handling based on vm_object only.
  */
 
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]