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