]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/mach_host.defs
xnu-1504.15.3.tar.gz
[apple/xnu.git] / osfmk / mach / mach_host.defs
index d4fd9cf2942a518c3d8efa1d7f3f4e36d22aa994..df309d936742c082a1cd6341442894de4c34ea42 100644 (file)
@@ -1,14 +1,19 @@
 /*
- * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
  *
- * @APPLE_LICENSE_HEADER_START@
+ * @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
@@ -18,7 +23,7 @@
  * 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@
@@ -60,7 +65,6 @@
  */
 
 #ifdef MACH_KERNEL
-#include <mach_prof.h>
 #include <advisory_pageout.h>
 #endif /* MACH_KERNEL */
 
@@ -101,8 +105,14 @@ routine    host_kernel_version(
 
 /*
  *      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     out_page_size   : vm_size_t);
 
@@ -146,7 +156,11 @@ routine host_get_clock_service(
                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);
@@ -182,18 +196,8 @@ routine host_ipc_hash_info(
        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
@@ -245,3 +249,13 @@ routine host_lockgroup_info(
        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 : */