[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/14] vm/vm_resident.c: move struct definition to a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 14/14] vm/vm_resident.c: move struct definition to a header file |
Date: |
Mon, 2 Dec 2013 22:54:52 +0100 |
* vm/vm_resident.c: Include vm/vm_resident.h.
(vm_page_bucket_t): Move struct defintion to vm/vm_resident.h.
---
vm/vm_resident.c | 5 +----
vm/vm_resident.h | 5 +++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index fbd4275..b164109 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -51,6 +51,7 @@
#include <vm/vm_page.h>
#include <vm/vm_pageout.h>
#include <vm/vm_kern.h>
+#include <vm/vm_resident.h>
#if MACH_VM_DEBUG
#include <mach/kern_return.h>
@@ -86,10 +87,6 @@ vm_offset_t virtual_space_end;
* [This table is often called the virtual-to-physical,
* or VP, table.]
*/
-typedef struct {
- decl_simple_lock_data(,lock)
- vm_page_t pages;
-} vm_page_bucket_t;
vm_page_bucket_t *vm_page_buckets; /* Array of buckets */
unsigned int vm_page_bucket_count = 0; /* How big is array? */
diff --git a/vm/vm_resident.h b/vm/vm_resident.h
index e8bf681..d1a79fc 100644
--- a/vm/vm_resident.h
+++ b/vm/vm_resident.h
@@ -28,6 +28,11 @@
#include <mach/std_types.h>
+typedef struct {
+ decl_simple_lock_data(,lock)
+ vm_page_t pages;
+} vm_page_bucket_t;
+
/*
* vm_page_replace:
*
--
1.8.1.4
- Re: [PATCH 08/14] ipc/ipc_marequest.c: move struct definition to a header file, (continued)
- [PATCH 09/14] ipc/ipc_port.c: trivial stylistic fix for consistency, Marin Ramesa, 2013/12/02
- [PATCH 10/14] kern/act.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 11/14] kern/lock.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 13/14] vm/vm_fault.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 14/14] vm/vm_resident.c: move struct definition to a header file,
Marin Ramesa <=
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Samuel Thibault, 2013/12/08
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Marin Ramesa, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Richard Braun, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Marin Ramesa, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Richard Braun, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Samuel Thibault, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Richard Braun, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Samuel Thibault, 2013/12/09
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Marin Ramesa, 2013/12/09