--- Gnu-Mach/ipc/ipc_table.h 2020/09/02 04:36:56 1.1.1.1 +++ Gnu-Mach/ipc/ipc_table.h 2020/09/02 04:47:16 1.1.1.3 @@ -45,6 +45,8 @@ * an ipc_table_size structure. These structures must * be elements of an array, ipc_table_entries. * + * Every its_size value must must be a power of two. + * * The array must end with two elements with the same its_size value. * Except for the terminating element, the its_size values must * be strictly increasing. The largest (last) its_size value @@ -81,7 +83,7 @@ extern ipc_table_size_t ipc_table_entrie extern ipc_table_size_t ipc_table_dnrequests; extern void -ipc_table_init(); +ipc_table_init(void); /* * Note that ipc_table_alloc, ipc_table_realloc, and ipc_table_free @@ -108,6 +110,12 @@ extern void ipc_table_free( vm_size_t size, vm_offset_t table); +void ipc_table_fill( + ipc_table_size_t its, + unsigned int num, + unsigned int min, + vm_size_t elemsize); + #define it_entries_alloc(its) \ ((ipc_entry_t) \ ipc_table_alloc((its)->its_size * sizeof(struct ipc_entry)))