2 * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
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. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
34 * Mach Operating System
35 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
36 * All Rights Reserved.
38 * Permission to use, copy, modify and distribute this software and its
39 * documentation is hereby granted, provided that both the copyright
40 * notice and this permission notice appear in all copies of the
41 * software, derivative works or modified versions, and any portions
42 * thereof, and that both notices appear in supporting documentation.
44 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
45 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
46 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
48 * Carnegie Mellon requests users of this software to return to
50 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
51 * School of Computer Science
52 * Carnegie Mellon University
53 * Pittsburgh PA 15213-3890
55 * any improvements or extensions that they make and grant Carnegie Mellon
56 * the rights to redistribute these changes.
62 * File: mach/mach_host.defs
65 * Mach host operations support. Includes processor allocation and
70 #include <mach_prof.h>
71 #include <advisory_pageout.h>
72 #endif /* MACH_KERNEL */
77 #endif /* KERNEL_SERVER */
84 #include <mach/std_types.defs>
85 #include <mach/mach_types.defs>
86 #include <mach/clock_types.defs>
87 #include <mach_debug/mach_debug_types.defs>
90 * References to host objects are returned by:
91 * mach_host_self() - trap
95 * Return information about this host.
99 flavor : host_flavor_t;
100 out host_info_out : host_info_t, CountInOut);
103 * Get string describing current kernel version.
105 routine host_kernel_version(
107 out kernel_version : kernel_version_t);
112 routine host_page_size(
114 out out_page_size : vm_size_t);
117 * Allow pagers to create named entries that point to un-mapped
118 * abstract memory object. The named entries are generally mappable
119 * and can be subsetted through the mach_make_memory_entry call
121 routine mach_memory_object_memory_entry(
125 permission :vm_prot_t;
126 pager :memory_object_t;
127 out entry_handle :mach_port_move_send_t);
131 * Get processor info for all the processors on this host.
132 * The returned data is an OOL array of processor info.
134 routine host_processor_info(
136 flavor : processor_flavor_t;
137 out out_processor_count : natural_t;
138 out out_processor_info : processor_info_array_t);
141 * Return host IO master access port
143 routine host_get_io_master(
145 out io_master : io_master_t);
148 * Get service port for a processor set.
151 routine host_get_clock_service(
153 clock_id : clock_id_t;
154 out clock_serv : clock_serv_t);
157 routine kmod_get_info(
159 out modules : kmod_args_t);
162 * Returns information about the memory allocation zones.
163 * Supported in all kernels..
165 routine host_zone_info(
167 out names : zone_name_array_t,
169 out info : zone_info_array_t,
173 * Returns information about the global VP table.
174 * Only supported in MACH_VM_DEBUG kernels,
175 * otherwise returns KERN_FAILURE.
177 routine host_virtual_physical_table_info(
179 out info : hash_info_bucket_array_t,
183 * Returns information about the global reverse hash table.
184 * This call is only valid on MACH_IPC_DEBUG kernels.
185 * Otherwise, KERN_FAILURE is returned.
187 routine host_ipc_hash_info(
189 out info : hash_info_bucket_array_t,
193 * JMM - These routines should be on the host_priv port. We need
194 * to verify the move before putting them there.
196 routine enable_bluebox(
198 in taskID : unsigned;
199 in TWI_TableStart : unsigned;
200 in Desc_TableStart : unsigned);
202 routine disable_bluebox(
206 * JMM - Keep processor_set related items at the end for easy
210 * Get default processor set for host.
212 routine processor_set_default(
214 out default_set : processor_set_name_t);
217 * Create new processor set. Returns real port for manipulations,
218 * and name port for obtaining information.
220 routine processor_set_create(
222 out new_set : processor_set_t;
223 out new_name : processor_set_name_t);
226 * Temporary interfaces for conversion to 64 bit data path
229 routine mach_memory_object_memory_entry_64(
232 size :memory_object_size_t;
233 permission :vm_prot_t;
234 pager :memory_object_t;
235 out entry_handle :mach_port_move_send_t);
238 * Return statistics from this host.
240 routine host_statistics(
242 flavor : host_flavor_t;
243 out host_info_out : host_info_t, CountInOut);
245 routine host_request_notification(
247 notify_type : host_flavor_t;
248 notify_port : mach_port_make_send_once_t);
250 routine host_lockgroup_info(
252 out lockgroup_info : lockgroup_info_array_t,