[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 13/14] vm/vm_fault.c: move struct definition to a header file
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 13/14] vm/vm_fault.c: move struct definition to a header file |
Date: |
Sun, 8 Dec 2013 23:29:53 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Mon 02 Dec 2013 22:54:51 +0100, a écrit :
> * vm/vm_fault.c (vm_fault_state): Move struct definition to vm/vm_fault.h.
Ditto.
> ---
> 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
>
>
--
Samuel
R: Parce que ça renverse bêtement l'ordre naturel de lecture!
Q: Mais pourquoi citer en fin d'article est-il si effroyable?
R: Citer en fin d'article
Q: Quelle est la chose la plus désagréable sur les groupes de news?
- [PATCH 08/14] ipc/ipc_marequest.c: move struct definition to a header file, (continued)
- [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
- [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
- Re: [PATCH 13/14] vm/vm_fault.c: move struct definition to a header file,
Samuel Thibault <=
- [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
- 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