[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header fil
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file |
Date: |
Sun, 8 Dec 2013 23:28:52 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Mon 02 Dec 2013 22:54:45 +0100, a écrit :
> * ipc/ipc_hash.c (ipc_hash_global_bucket): Move struct definition to
> ipc/ipc_hash.h.
Ditto.
> ---
> ipc/ipc_hash.c | 7 -------
> ipc/ipc_hash.h | 7 +++++++
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c
> index 5eec58c..5b31691 100644
> --- a/ipc/ipc_hash.c
> +++ b/ipc/ipc_hash.c
> @@ -144,13 +144,6 @@ ipc_hash_index_t ipc_hash_global_mask;
> (((ipc_hash_index_t) ((vm_offset_t)obj)) >> 6)) & \
> ipc_hash_global_mask)
>
> -typedef struct ipc_hash_global_bucket {
> - decl_simple_lock_data(, ihgb_lock_data)
> - ipc_tree_entry_t ihgb_head;
> -} *ipc_hash_global_bucket_t;
> -
> -#define IHGB_NULL ((ipc_hash_global_bucket_t) 0)
> -
> #define ihgb_lock_init(ihgb)
> simple_lock_init(&(ihgb)->ihgb_lock_data)
> #define ihgb_lock(ihgb) simple_lock(&(ihgb)->ihgb_lock_data)
> #define ihgb_unlock(ihgb) simple_unlock(&(ihgb)->ihgb_lock_data)
> diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h
> index 929ba77..1e853c3 100644
> --- a/ipc/ipc_hash.h
> +++ b/ipc/ipc_hash.h
> @@ -39,6 +39,13 @@
>
> typedef natural_t ipc_hash_index_t;
>
> +typedef struct ipc_hash_global_bucket {
> + decl_simple_lock_data(, ihgb_lock_data)
> + ipc_tree_entry_t ihgb_head;
> +} *ipc_hash_global_bucket_t;
> +
> +#define IHGB_NULL ((ipc_hash_global_bucket_t) 0)
> +
> extern void
> ipc_hash_init(void);
>
> --
> 1.8.1.4
>
>
--
Samuel
Yep. Moi j'ai un clavier à une touche.
Par contre, ma souris a 102 boutons, c'est pas toujours pratique.
-+- OG in: Guide du Cabaliste Usenet - Le mulot contre attaque -+-
- Re: [PATCH 03/14] ddb/db_cond.c: move struct definition to a header file, (continued)
[PATCH 04/14] ddb/db_macro.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
[PATCH 05/14] i386/i386/idt.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
[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
- Re: [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file,
Samuel Thibault <=
[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