bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 14/14] vm/vm_resident.c: move struct definition to a header f


From: Samuel Thibault
Subject: Re: [PATCH 14/14] vm/vm_resident.c: move struct definition to a header file
Date: Sun, 8 Dec 2013 23:29:59 +0900
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Mon 02 Dec 2013 22:54:52 +0100, a écrit :
> * vm/vm_resident.c: Include vm/vm_resident.h.
> (vm_page_bucket_t): Move struct defintion to vm/vm_resident.h.

Ditto.

> ---
>  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
> 
> 

-- 
Samuel
 La carte réseau fournie par cybercable (sn2000) ne va-t-elle que sur
 bus isa ou peut-on aussi la mettre sur bus PCI.
 Merci de m'éclairer.
 -+- JP in le Neuneu Pète un Câble : Une carte dans chaque port -+-



reply via email to

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