Annotation of OSKit-Mach/ipc/ipc_hash.h, revision 1.1.1.1

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: #include "ipc_types.h"
                     42: #include "ipc_object.h"
                     43: 
                     44: extern void
                     45: ipc_hash_init();
                     46: 
                     47: #if    MACH_IPC_DEBUG
                     48: 
                     49: #include <mach_debug/hash_info.h>
                     50: 
                     51: typedef natural_t ipc_hash_index_t;
                     52: 
                     53: extern ipc_hash_index_t ipc_hash_info(hash_info_bucket_t *,
                     54:                                      mach_msg_type_number_t);
                     55: 
                     56: #endif /* MACH_IPC_DEBUG */
                     57: 
                     58: extern boolean_t ipc_hash_lookup(ipc_space_t space, ipc_object_t obj,
                     59:                                 mach_port_t *namep, ipc_entry_t *entryp);
                     60: 
                     61: extern void ipc_hash_insert(ipc_space_t space, ipc_object_t obj,
                     62:                            mach_port_t name, ipc_entry_t entry);
                     63: 
                     64: extern void ipc_hash_delete(ipc_space_t space, ipc_object_t obj,
                     65:                            mach_port_t name, ipc_entry_t entry);
                     66: 
                     67: /*
                     68:  *     For use by functions that know what they're doing:
                     69:  *     the global primitives, for splay tree entries,
                     70:  *     and the local primitives, for table entries.
                     71:  */
                     72: 
                     73: extern boolean_t ipc_hash_global_lookup(ipc_space_t space, ipc_object_t obj,
                     74:                                        mach_port_t *namep,
                     75:                                        ipc_tree_entry_t *entryp);
                     76: 
                     77: extern void ipc_hash_global_insert(ipc_space_t space, ipc_object_t obj,
                     78:                                   mach_port_t name, ipc_tree_entry_t entry);
                     79: 
                     80: extern void ipc_hash_global_delete(ipc_space_t space, ipc_object_t obj,
                     81:                                   mach_port_t name, ipc_tree_entry_t entry);
                     82: 
                     83: extern boolean_t ipc_hash_local_lookup(ipc_space_t space, ipc_object_t obj,
                     84:                                       mach_port_t *namep,
                     85:                                       ipc_entry_t *entryp);
                     86: 
                     87: extern void 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 ipc_hash_local_delete(ipc_space_t space, ipc_object_t obj,
                     91:                                  mach_port_index_t index, ipc_entry_t entry);
                     92: 
                     93: #endif /* _IPC_IPC_HASH_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.