summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-05-22 19:25:41 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-05-22 19:25:41 +0200
commite03567399f762998a4a0b4227adf86a38009c712 (patch)
tree51fa18ed20c80f648a1bfdae9ba96570139dc9e1
parent4934e7c3735dbd25953c922a1327a875f47046a4 (diff)
ipc: drop size parameter from `ipc_space_create'
* ipc/ipc_space.c (ipc_space_create): Drop size parameter. * ipc/ipc_space.h (ipc_space_create): Adopt declaration, fix comment. * kern/ipc_tt.c (ipc_task_init): Adopt accordingly.
-rw-r--r--ipc/ipc_space.c1
-rw-r--r--ipc/ipc_space.h11
-rw-r--r--kern/ipc_tt.c2
3 files changed, 2 insertions, 12 deletions
diff --git a/ipc/ipc_space.c b/ipc/ipc_space.c
index ea3cb3b2..894cf58e 100644
--- a/ipc/ipc_space.c
+++ b/ipc/ipc_space.c
@@ -99,7 +99,6 @@ struct ipc_entry zero_entry;
kern_return_t
ipc_space_create(
- ipc_table_size_t initial,
ipc_space_t *spacep)
{
ipc_space_t space;
diff --git a/ipc/ipc_space.h b/ipc/ipc_space.h
index 58fe47c4..bbfee46e 100644
--- a/ipc/ipc_space.h
+++ b/ipc/ipc_space.h
@@ -54,15 +54,6 @@
* Every task has a space of IPC capabilities.
* IPC operations like send and receive use this space.
* IPC kernel calls manipulate the space of the target task.
- *
- * Every space has a non-NULL is_table with is_table_size entries.
- * A space may have a NULL is_tree. is_tree_small records the
- * number of entries in the tree that, if the table were to grow
- * to the next larger size, would move from the tree to the table.
- *
- * is_growing marks when the table is in the process of growing.
- * When the table is growing, it can't be freed or grown by another
- * thread, because of krealloc/kmem_realloc's requirements.
*/
typedef unsigned int ipc_space_refs_t;
@@ -133,7 +124,7 @@ extern void ipc_space_release(struct ipc_space *space);
#define is_reference(is) ipc_space_reference(is)
#define is_release(is) ipc_space_release(is)
-kern_return_t ipc_space_create(ipc_table_size_t, ipc_space_t *);
+kern_return_t ipc_space_create(ipc_space_t *);
kern_return_t ipc_space_create_special(struct ipc_space **);
void ipc_space_destroy(struct ipc_space *);
diff --git a/kern/ipc_tt.c b/kern/ipc_tt.c
index 96737be8..e4d657b7 100644
--- a/kern/ipc_tt.c
+++ b/kern/ipc_tt.c
@@ -72,7 +72,7 @@ ipc_task_init(
int i;
- kr = ipc_space_create(&ipc_table_entries[0], &space);
+ kr = ipc_space_create(&space);
if (kr != KERN_SUCCESS)
panic("ipc_task_init");