/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
*
- * @APPLE_LICENSE_HEADER_START@
- *
- * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
- * compliance with the License. Please obtain a copy of the License at
- * http://www.opensource.apple.com/apsl/ and read it before using this
- * file.
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* Please see the License for the specific language governing rights and
* limitations under the License.
*
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
/*
* @OSF_COPYRIGHT@
*/
#ifdef MACH_KERNEL
-#include <mach_prof.h>
#include <advisory_pageout.h>
#endif /* MACH_KERNEL */
/*
* Get host page size
+ * (compatibility for running old libraries on new kernels -
+ * host_page_size() is now a library routine based on constants)
*/
+#if KERNEL
routine host_page_size(
+#else
+routine _host_page_size(
+#endif
host : host_t;
- out page_size : vm_size_t);
+ out out_page_size : vm_size_t);
/*
* Allow pagers to create named entries that point to un-mapped
* The returned data is an OOL array of processor info.
*/
routine host_processor_info(
- host : host_t;
- flavor : processor_flavor_t;
- out processor_count : natural_t;
- out processor_info : processor_info_array_t);
+ host : host_t;
+ flavor : processor_flavor_t;
+ out out_processor_count : natural_t;
+ out out_processor_info : processor_info_array_t);
/*
* Return host IO master access port
clock_id : clock_id_t;
out clock_serv : clock_serv_t);
-
+/*
+ * kernel module interface (obsolete as of SnowLeopard)
+ * see mach/kmod.h
+ */
+/* kmod_ MIG calls now return KERN_NOT_SUPPORTED on PPC/i386/x86_64. */
routine kmod_get_info(
host : host_t;
out modules : kmod_args_t);
out info : hash_info_bucket_array_t,
Dealloc);
-/*
- * JMM - These routines should be on the host_priv port. We need
- * to verify the move before putting them there.
- */
-routine enable_bluebox(
- host : host_t;
- in taskID : unsigned;
- in TWI_TableStart : unsigned;
- in Desc_TableStart : unsigned);
-
-routine disable_bluebox(
- host : host_t);
+skip; /* was enable_bluebox */
+skip; /* was disable_bluebox */
/*
* JMM - Keep processor_set related items at the end for easy
host : host_t;
notify_type : host_flavor_t;
notify_port : mach_port_make_send_once_t);
+
+routine host_lockgroup_info(
+ host : host_t;
+ out lockgroup_info : lockgroup_info_array_t,
+ Dealloc);
+
+/*
+ * Return 64-bit statistics from this host.
+ */
+routine host_statistics64(
+ host_priv : host_t;
+ flavor : host_flavor_t;
+ out host_info64_out : host_info64_t, CountInOut);
+
+
+/* vim: set ft=c : */