2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
26 * Mach Operating System
27 * Copyright (c) 1991,1990 Carnegie Mellon University
28 * All Rights Reserved.
30 * Permission to use, copy, modify and distribute this software and its
31 * documentation is hereby granted, provided that both the copyright
32 * notice and this permission notice appear in all copies of the
33 * software, derivative works or modified versions, and any portions
34 * thereof, and that both notices appear in supporting documentation.
36 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
40 * Carnegie Mellon requests users of this software to return to
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
53 * File: mach_debug/ipc_info.h
57 * Definitions for the IPC debugging interface.
60 #ifndef _MACH_DEBUG_IPC_INFO_H_
61 #define _MACH_DEBUG_IPC_INFO_H_
63 #include <mach/boolean.h>
64 #include <mach/port.h>
65 #include <mach/machine/vm_types.h>
68 * Remember to update the mig type definitions
69 * in mach_debug_types.defs when adding/removing fields.
73 typedef struct ipc_info_space
{
74 natural_t iis_genno_mask
; /* generation number mask */
75 natural_t iis_table_size
; /* size of table */
76 natural_t iis_table_next
; /* next possible size of table */
77 natural_t iis_tree_size
; /* size of tree */
78 natural_t iis_tree_small
; /* # of small entries in tree */
79 natural_t iis_tree_hash
; /* # of hashed entries in tree */
83 typedef struct ipc_info_name
{
84 mach_port_name_t iin_name
; /* port name, including gen number */
85 /*boolean_t*/integer_t iin_collision
; /* collision at this entry? */
86 mach_port_type_t iin_type
; /* straight port type */
87 mach_port_urefs_t iin_urefs
; /* user-references */
88 natural_t iin_object
; /* object pointer/identifier */
89 natural_t iin_next
; /* marequest/next in free list */
90 natural_t iin_hash
; /* hash index */
93 typedef ipc_info_name_t
*ipc_info_name_array_t
;
96 typedef struct ipc_info_tree_name
{
97 ipc_info_name_t iitn_name
;
98 mach_port_name_t iitn_lchild
; /* name of left child */
99 mach_port_name_t iitn_rchild
; /* name of right child */
100 } ipc_info_tree_name_t
;
102 typedef ipc_info_tree_name_t
*ipc_info_tree_name_array_t
;
104 #endif /* _MACH_DEBUG_IPC_INFO_H_ */