diff options
Diffstat (limited to 'ipc/ipc_table.c')
-rw-r--r-- | ipc/ipc_table.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/ipc/ipc_table.c b/ipc/ipc_table.c index 90960a8..1a89d81 100644 --- a/ipc/ipc_table.c +++ b/ipc/ipc_table.c @@ -42,9 +42,6 @@ #include <kern/slab.h> #include <vm/vm_kern.h> -ipc_table_size_t ipc_table_entries; -const unsigned int ipc_table_entries_size = 512; - ipc_table_size_t ipc_table_dnrequests; const unsigned int ipc_table_dnrequests_size = 64; @@ -92,20 +89,6 @@ ipc_table_fill( void ipc_table_init(void) { - ipc_table_entries = (ipc_table_size_t) - kalloc(sizeof(struct ipc_table_size) * - ipc_table_entries_size); - assert(ipc_table_entries != ITS_NULL); - - ipc_table_fill(ipc_table_entries, ipc_table_entries_size - 1, - 4, sizeof(struct ipc_entry)); - - /* the last two elements should have the same size */ - - ipc_table_entries[ipc_table_entries_size - 1].its_size = - ipc_table_entries[ipc_table_entries_size - 2].its_size; - - ipc_table_dnrequests = (ipc_table_size_t) kalloc(sizeof(struct ipc_table_size) * ipc_table_dnrequests_size); @@ -143,33 +126,6 @@ ipc_table_alloc( } /* - * Routine: ipc_table_realloc - * Purpose: - * Reallocate a big table. - * - * The new table remaps the old table, - * so copying is not necessary. - * Conditions: - * Only works for page-size or bigger tables. - * May block. - */ - -vm_offset_t -ipc_table_realloc( - vm_size_t old_size, - vm_offset_t old_table, - vm_size_t new_size) -{ - vm_offset_t new_table; - - if (kmem_realloc(kmem_map, old_table, old_size, - &new_table, new_size) != KERN_SUCCESS) - new_table = 0; - - return new_table; -} - -/* * Routine: ipc_table_free * Purpose: * Free a table allocated with ipc_table_alloc or |