[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a header file |
Date: |
Sun, 8 Dec 2013 23:29:46 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Mon 02 Dec 2013 22:54:50 +0100, a écrit :
> * vm/memory_object_proxy.c (memory_object_proxy): Move struct definition to
> vm/memory_object_proxy.h.
Ditto.
> ---
> 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
>
>
--
Samuel
+#if defined(__alpha__) && defined(CONFIG_PCI)
+ /*
+ * The meaning of life, the universe, and everything. Plus
+ * this makes the year come out right.
+ */
+ year -= 42;
+#endif
(From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)
- [PATCH 06/14] i386/intel/pmap.c: move struct definitions 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, 2013/12/02
- Re: [PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a header file,
Samuel Thibault <=
- [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