diff options
author | Richard Braun <rbraun@sceen.net> | 2012-01-09 10:01:56 +0000 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-01-09 10:01:56 +0000 |
commit | 3496138ca428a7b2b69fe08e69fb544006a9a2cc (patch) | |
tree | 38a675ce4e9ec23ed283e66ce7e4c7e5d8355efb /ipc/ipc_hash.h | |
parent | 88382234bb540544a3550d1ddfb84e0d17eec971 (diff) | |
download | gnumach-3496138ca428a7b2b69fe08e69fb544006a9a2cc.tar.gz gnumach-3496138ca428a7b2b69fe08e69fb544006a9a2cc.tar.bz2 gnumach-3496138ca428a7b2b69fe08e69fb544006a9a2cc.zip |
Improve ipc hash/marequest init readability
Use macros instead of raw numeric values.
* ipc/ipc_hash.h (IPC_HASH_GLOBAL_SIZE): New macro.
* ipc/ipc_hash.c (ipc_hash_init): Directly set the global hash table
size to IPC_HASH_GLOBAL_SIZE.
* ipc/ipc_marequest.h (IPC_MAREQUEST_SIZE): New macro.
* ipc/ipc_marequest.c (ipc_marequest_init): Directly set the marequest
hash table size to IPC_MAREQUEST_SIZE.
Diffstat (limited to 'ipc/ipc_hash.h')
-rw-r--r-- | ipc/ipc_hash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h index 58c56ca8..929ba77d 100644 --- a/ipc/ipc_hash.h +++ b/ipc/ipc_hash.h @@ -67,6 +67,8 @@ ipc_hash_delete(ipc_space_t space, ipc_object_t obj, * 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); |