[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a head
From: |
Marin Ramesa |
Subject: |
[PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a header file |
Date: |
Mon, 2 Dec 2013 22:54:50 +0100 |
* vm/memory_object_proxy.c (memory_object_proxy): Move struct definition to
vm/memory_object_proxy.h.
---
vm/memory_object_proxy.c | 10 ----------
vm/memory_object_proxy.h | 9 +++++++++
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/vm/memory_object_proxy.c b/vm/memory_object_proxy.c
index 4fed312..b200c5a 100644
--- a/vm/memory_object_proxy.c
+++ b/vm/memory_object_proxy.c
@@ -50,16 +50,6 @@
/* The cache which holds our proxy memory objects. */
static struct kmem_cache memory_object_proxy_cache;
-struct memory_object_proxy
-{
- struct ipc_port *port;
-
- ipc_port_t object;
- vm_prot_t max_protection;
-};
-typedef struct memory_object_proxy *memory_object_proxy_t;
-
-
void
memory_object_proxy_init (void)
{
diff --git a/vm/memory_object_proxy.h b/vm/memory_object_proxy.h
index 8c2bc0f..dd55ebe 100644
--- a/vm/memory_object_proxy.h
+++ b/vm/memory_object_proxy.h
@@ -28,6 +28,15 @@
#include <mach/message.h>
#include <mach/vm_prot.h>
+struct memory_object_proxy
+{
+ struct ipc_port *port;
+
+ ipc_port_t object;
+ vm_prot_t max_protection;
+};
+typedef struct memory_object_proxy *memory_object_proxy_t;
+
extern void memory_object_proxy_init (void);
extern boolean_t memory_object_proxy_notify (mach_msg_header_t *msg);
extern kern_return_t memory_object_create_proxy (ipc_space_t space,
--
1.8.1.4
- Re: [PATCH 05/14] i386/i386/idt.c: move struct definition to a header file, (continued)
- [PATCH 06/14] i386/intel/pmap.c: move struct definitions to a header file, Marin Ramesa, 2013/12/02
- [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 08/14] ipc/ipc_marequest.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [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 <=
- [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, 2013/12/02
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Samuel Thibault, 2013/12/08