]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach_debug/ipc_info.h
xnu-123.5.tar.gz
[apple/xnu.git] / osfmk / mach_debug / ipc_info.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 * @OSF_COPYRIGHT@
24 */
25/*
26 * HISTORY
27 *
28 * Revision 1.1.1.1 1998/09/22 21:05:45 wsanchez
29 * Import of Mac OS X kernel (~semeria)
30 *
31 * Revision 1.1.1.1 1998/03/07 02:26:17 wsanchez
32 * Import of OSF Mach kernel (~mburg)
33 *
34 * Revision 1.2.13.2 1995/01/06 19:52:40 devrcs
35 * mk6 CR668 - 1.3b26 merge
36 * 64bit cleanup
37 * [1994/10/14 03:43:35 dwm]
38 *
39 * Revision 1.2.13.1 1994/09/23 02:45:18 ezf
40 * change marker to not FREE
41 * [1994/09/22 21:44:05 ezf]
42 *
43 * Revision 1.2.3.3 1993/09/09 16:07:52 jeffc
44 * CR9745 - Delete message accepted notifications
45 * [1993/09/03 20:45:48 jeffc]
46 *
47 * Revision 1.2.3.2 1993/06/09 02:44:43 gm
48 * Added to OSF/1 R1.3 from NMK15.0.
49 * [1993/06/02 21:19:04 jeffc]
50 *
51 * Revision 1.2 1993/04/19 16:41:20 devrcs
52 * ansi C conformance changes
53 * [1993/02/02 18:56:50 david]
54 *
55 * Revision 1.1 1992/09/30 02:32:34 robert
56 * Initial revision
57 *
58 * $EndLog$
59 */
60/* CMU_HIST */
61/*
62 * Revision 2.5.4.2 92/04/08 15:45:00 jeffreyh
63 * Back out Mainline changes. Revert back to revision 2.5.
64 * [92/04/07 10:29:40 jeffreyh]
65 *
66 * Revision 2.5 91/05/14 17:03:28 mrt
67 * Correcting copyright
68 *
69 * Revision 2.4 91/02/05 17:37:50 mrt
70 * Changed to new Mach copyright
71 * [91/02/01 17:28:30 mrt]
72 *
73 * Revision 2.3 91/01/08 15:19:05 rpd
74 * Moved ipc_info_bucket_t to mach_debug/hash_info.h.
75 * [91/01/02 rpd]
76 *
77 * Revision 2.2 90/06/02 15:00:28 rpd
78 * Created for new IPC.
79 * [90/03/26 23:45:14 rpd]
80 *
81 */
82/* CMU_ENDHIST */
83/*
84 * Mach Operating System
85 * Copyright (c) 1991,1990 Carnegie Mellon University
86 * All Rights Reserved.
87 *
88 * Permission to use, copy, modify and distribute this software and its
89 * documentation is hereby granted, provided that both the copyright
90 * notice and this permission notice appear in all copies of the
91 * software, derivative works or modified versions, and any portions
92 * thereof, and that both notices appear in supporting documentation.
93 *
94 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
95 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
96 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
97 *
98 * Carnegie Mellon requests users of this software to return to
99 *
100 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
101 * School of Computer Science
102 * Carnegie Mellon University
103 * Pittsburgh PA 15213-3890
104 *
105 * any improvements or extensions that they make and grant Carnegie Mellon
106 * the rights to redistribute these changes.
107 */
108/*
109 */
110/*
111 * File: mach_debug/ipc_info.h
112 * Author: Rich Draves
113 * Date: March, 1990
114 *
115 * Definitions for the IPC debugging interface.
116 */
117
118#ifndef _MACH_DEBUG_IPC_INFO_H_
119#define _MACH_DEBUG_IPC_INFO_H_
120
121#include <mach/boolean.h>
122#include <mach/port.h>
123#include <mach/machine/vm_types.h>
124
125/*
126 * Remember to update the mig type definitions
127 * in mach_debug_types.defs when adding/removing fields.
128 */
129
130
131typedef struct ipc_info_space {
132 natural_t iis_genno_mask; /* generation number mask */
133 natural_t iis_table_size; /* size of table */
134 natural_t iis_table_next; /* next possible size of table */
135 natural_t iis_tree_size; /* size of tree */
136 natural_t iis_tree_small; /* # of small entries in tree */
137 natural_t iis_tree_hash; /* # of hashed entries in tree */
138} ipc_info_space_t;
139
140
141typedef struct ipc_info_name {
142 mach_port_name_t iin_name; /* port name, including gen number */
143/*boolean_t*/integer_t iin_collision; /* collision at this entry? */
144 mach_port_type_t iin_type; /* straight port type */
145 mach_port_urefs_t iin_urefs; /* user-references */
146 vm_offset_t iin_object; /* object pointer */
147 natural_t iin_next; /* marequest/next in free list */
148 natural_t iin_hash; /* hash index */
149} ipc_info_name_t;
150
151typedef ipc_info_name_t *ipc_info_name_array_t;
152
153
154typedef struct ipc_info_tree_name {
155 ipc_info_name_t iitn_name;
156 mach_port_name_t iitn_lchild; /* name of left child */
157 mach_port_name_t iitn_rchild; /* name of right child */
158} ipc_info_tree_name_t;
159
160typedef ipc_info_tree_name_t *ipc_info_tree_name_array_t;
161
162#endif /* _MACH_DEBUG_IPC_INFO_H_ */