2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
23 * @OSF_FREE_COPYRIGHT@
26 * Mach Operating System
27 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
28 * All Rights Reserved.
30 * Permission to use, copy, modify and distribute this software and its
31 * documentation is hereby granted, provided that both the copyright
32 * notice and this permission notice appear in all copies of the
33 * software, derivative works or modified versions, and any portions
34 * thereof, and that both notices appear in supporting documentation.
36 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
40 * Carnegie Mellon requests users of this software to return to
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
53 * File: mach/mach_port.defs
56 * Exported kernel calls.
62 #endif /* KERNEL_SERVER */
65 #include <mach/std_types.defs>
66 #include <mach/mach_types.defs>
69 * Return scheduling statistics for a processor set.
71 routine processor_set_statistics(
72 pset : processor_set_name_t;
73 flavor : processor_set_flavor_t;
74 out info_out : processor_set_info_t, CountInOut);
78 * Destroy processor set.
80 routine processor_set_destroy(
81 set : processor_set_t);
85 * Set max priority for processor_set.
87 routine processor_set_max_priority(
88 processor_set : processor_set_t;
90 change_threads : boolean_t);
93 * Enable policy for processor set
95 routine processor_set_policy_enable(
96 processor_set : processor_set_t;
100 * Disable policy for processor set
102 routine processor_set_policy_disable(
103 processor_set : processor_set_t;
105 change_threads : boolean_t);
108 * List all tasks in processor set.
110 routine processor_set_tasks(
111 processor_set : processor_set_t;
112 out task_list : task_array_t);
115 * List all threads in processor set.
117 routine processor_set_threads(
118 processor_set : processor_set_t;
119 out thread_list : thread_act_array_t);
122 * Controls the scheduling attributes governing the processor set.
123 * Allows control of enabled policies, and per-policy base and limit
126 routine processor_set_policy_control(
127 pset : processor_set_t;
128 flavor : processor_set_flavor_t;
129 policy_info : processor_set_info_t;
135 * This call is only valid on MACH_DEBUG kernels.
136 * Otherwise, KERN_FAILURE is returned.
138 routine processor_set_stack_usage(
139 pset : processor_set_t;
140 out total : unsigned;
141 out space : vm_size_t;
142 out resident : vm_size_t;
143 out maxusage : vm_size_t;
144 out maxstack : vm_offset_t);
147 * Get information about processor set.
149 routine processor_set_info(
150 set_name : processor_set_name_t;
153 out info_out : processor_set_info_t, CountInOut);