|
|
1.1 ! root 1: /* ! 2: * Mach Operating System ! 3: * Copyright (c) 1991,1990,1989 Carnegie Mellon University ! 4: * All Rights Reserved. ! 5: * ! 6: * Permission to use, copy, modify and distribute this software and its ! 7: * documentation is hereby granted, provided that both the copyright ! 8: * notice and this permission notice appear in all copies of the ! 9: * software, derivative works or modified versions, and any portions ! 10: * thereof, and that both notices appear in supporting documentation. ! 11: * ! 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" ! 13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ! 14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ! 15: * ! 16: * Carnegie Mellon requests users of this software to return to ! 17: * ! 18: * Software Distribution Coordinator or [email protected] ! 19: * School of Computer Science ! 20: * Carnegie Mellon University ! 21: * Pittsburgh PA 15213-3890 ! 22: * ! 23: * any improvements or extensions that they make and grant Carnegie Mellon ! 24: * the rights to redistribute these changes. ! 25: */ ! 26: /* ! 27: * File: ipc/ipc_hash.h ! 28: * Author: Rich Draves ! 29: * Date: 1989 ! 30: * ! 31: * Declarations of entry hash table operations. ! 32: */ ! 33: ! 34: #ifndef _IPC_IPC_HASH_H_ ! 35: #define _IPC_IPC_HASH_H_ ! 36: ! 37: #include <mach_ipc_debug.h> ! 38: ! 39: #include <mach/boolean.h> ! 40: #include <mach/kern_return.h> ! 41: ! 42: extern void ! 43: ipc_hash_init(); ! 44: ! 45: #if MACH_IPC_DEBUG ! 46: ! 47: extern unsigned int ! 48: ipc_hash_info(/* hash_info_bucket_t *, unsigned int */); ! 49: ! 50: #endif MACH_IPC_DEBUG ! 51: ! 52: extern boolean_t ! 53: ipc_hash_lookup(/* ipc_space_t space, ipc_object_t obj, ! 54: mach_port_t *namep, ipc_entry_t *entryp */); ! 55: ! 56: extern void ! 57: ipc_hash_insert(/* ipc_space_t space, ipc_object_t obj, ! 58: mach_port_t name, ipc_entry_t entry */); ! 59: ! 60: extern void ! 61: ipc_hash_delete(/* ipc_space_t space, ipc_object_t obj, ! 62: mach_port_t name, ipc_entry_t entry */); ! 63: ! 64: /* ! 65: * For use by functions that know what they're doing: ! 66: * the global primitives, for splay tree entries, ! 67: * and the local primitives, for table entries. ! 68: */ ! 69: ! 70: extern boolean_t ! 71: ipc_hash_global_lookup(/* ipc_space_t space, ipc_object_t obj, ! 72: mach_port_t *namep, ipc_tree_entry_t *entryp */); ! 73: ! 74: extern void ! 75: ipc_hash_global_insert(/* ipc_space_t space, ipc_object_t obj, ! 76: mach_port_t name, ipc_tree_entry_t entry */); ! 77: ! 78: extern void ! 79: ipc_hash_global_delete(/* ipc_space_t space, ipc_object_t obj, ! 80: mach_port_t name, ipc_tree_entry_t entry */); ! 81: ! 82: extern boolean_t ! 83: ipc_hash_local_lookup(/* ipc_space_t space, ipc_object_t obj, ! 84: mach_port_t *namep, ipc_entry_t *entryp */); ! 85: ! 86: extern void ! 87: ipc_hash_local_insert(/* ipc_space_t space, ipc_object_t obj, ! 88: mach_port_index_t index, ipc_entry_t entry */); ! 89: ! 90: extern void ! 91: ipc_hash_local_delete(/* ipc_space_t space, ipc_object_t obj, ! 92: mach_port_index_t index, ipc_entry_t entry */); ! 93: ! 94: #endif _IPC_IPC_HASH_H_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.