[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file |
Date: |
Mon, 2 Dec 2013 22:54:45 +0100 |
* ipc/ipc_hash.c (ipc_hash_global_bucket): Move struct definition to
ipc/ipc_hash.h.
---
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
- [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 <=
- [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