--- Gnu-Mach/ipc/ipc_hash.h 2020/09/02 04:42:37 1.1.1.2 +++ Gnu-Mach/ipc/ipc_hash.h 2020/09/02 04:45:08 1.1.1.3 @@ -34,32 +34,32 @@ #ifndef _IPC_IPC_HASH_H_ #define _IPC_IPC_HASH_H_ -#include - #include #include +typedef natural_t ipc_hash_index_t; + extern void -ipc_hash_init(); +ipc_hash_init(void); #if MACH_IPC_DEBUG -extern unsigned int -ipc_hash_info(/* hash_info_bucket_t *, unsigned int */); +extern ipc_hash_index_t +ipc_hash_info(hash_info_bucket_t *, mach_msg_type_number_t); #endif /* MACH_IPC_DEBUG */ extern boolean_t -ipc_hash_lookup(/* ipc_space_t space, ipc_object_t obj, - mach_port_t *namep, ipc_entry_t *entryp */); +ipc_hash_lookup(ipc_space_t space, ipc_object_t obj, + mach_port_t *namep, ipc_entry_t *entryp); extern void -ipc_hash_insert(/* ipc_space_t space, ipc_object_t obj, - mach_port_t name, ipc_entry_t entry */); +ipc_hash_insert(ipc_space_t space, ipc_object_t obj, + mach_port_t name, ipc_entry_t entry); extern void -ipc_hash_delete(/* ipc_space_t space, ipc_object_t obj, - mach_port_t name, ipc_entry_t entry */); +ipc_hash_delete(ipc_space_t space, ipc_object_t obj, + mach_port_t name, ipc_entry_t entry); /* * For use by functions that know what they're doing: @@ -67,28 +67,30 @@ ipc_hash_delete(/* ipc_space_t space, ip * and the local primitives, for table entries. */ +#define IPC_HASH_GLOBAL_SIZE 256 + extern boolean_t -ipc_hash_global_lookup(/* ipc_space_t space, ipc_object_t obj, - mach_port_t *namep, ipc_tree_entry_t *entryp */); +ipc_hash_global_lookup(ipc_space_t space, ipc_object_t obj, + mach_port_t *namep, ipc_tree_entry_t *entryp); extern void -ipc_hash_global_insert(/* ipc_space_t space, ipc_object_t obj, - mach_port_t name, ipc_tree_entry_t entry */); +ipc_hash_global_insert(ipc_space_t space, ipc_object_t obj, + mach_port_t name, ipc_tree_entry_t entry); extern void -ipc_hash_global_delete(/* ipc_space_t space, ipc_object_t obj, - mach_port_t name, ipc_tree_entry_t entry */); +ipc_hash_global_delete(ipc_space_t space, ipc_object_t obj, + mach_port_t name, ipc_tree_entry_t entry); extern boolean_t -ipc_hash_local_lookup(/* ipc_space_t space, ipc_object_t obj, - mach_port_t *namep, ipc_entry_t *entryp */); +ipc_hash_local_lookup(ipc_space_t space, ipc_object_t obj, + mach_port_t *namep, ipc_entry_t *entryp); extern void -ipc_hash_local_insert(/* ipc_space_t space, ipc_object_t obj, - mach_port_index_t index, ipc_entry_t entry */); +ipc_hash_local_insert(ipc_space_t space, ipc_object_t obj, + mach_port_index_t index, ipc_entry_t entry); extern void -ipc_hash_local_delete(/* ipc_space_t space, ipc_object_t obj, - mach_port_index_t index, ipc_entry_t entry */); +ipc_hash_local_delete(ipc_space_t space, ipc_object_t obj, + mach_port_index_t index, ipc_entry_t entry); #endif /* _IPC_IPC_HASH_H_ */