1 .\"
2 .\" Mach Operating System
3 .\" Copyright (c) 1991,1990 Carnegie Mellon University
4 .\" All Rights Reserved.
5 .\"
6 .\" Permission to use, copy, modify and distribute this software and its
7 .\" documentation is hereby granted, provided that both the copyright
8 .\" notice and this permission notice appear in all copies of the
9 .\" software, derivative works or modified versions, and any portions
10 .\" thereof, and that both notices appear in supporting documentation.
11 .\"
12 .\" CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 .\" CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 .\" ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 .\"
16 .\" Carnegie Mellon requests users of this software to return to
17 .\"
18 .\" Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 .\" School of Computer Science
20 .\" Carnegie Mellon University
21 .\" Pittsburgh PA 15213-3890
22 .\"
23 .\" any improvements or extensions that they make and grant Carnegie Mellon
24 .\" the rights to redistribute these changes.
25 .\"
26 .\"
27 .\" HISTORY
28 .\" $Log: processor_set_max_priority.man,v $
29 .\" Revision 2.5 93/03/18 15:14:28 mrt
30 .\" corrected types
31 .\" [93/03/11 12:54:05 lli]
32 .\"
33 .\" Revision 2.4 91/05/14 17:11:46 mrt
34 .\" Correcting copyright
35 .\"
36 .\" Revision 2.3 91/02/14 14:14:07 mrt
37 .\" Changed to new Mach copyright
38 .\" [91/02/12 18:14:56 mrt]
39 .\"
40 .\" Revision 2.2 90/08/07 18:42:50 rpd
41 .\" Created.
42 .\"
43 .TH processor_set_max_priority 2 8/13/89
44 .CM 4
45 .SH NAME
46 .nf
47 processor_set_max_priority \- set maximum priority for a processor_set
48 .SH SYNOPSIS
49 .nf
50 .ft B
51 #include <mach.h>
52
53 .nf
54 .ft B
55 kern_return_t
56 processor_set_max_priority(processor_set, priority, change_threads)
57 mach_port_t processor_set;
58 int priority;
59 boolean_t change_threads;
60
61
62 .fi
63 .ft P
64 .SH ARGUMENTS
65 .TP 15
66 .B
67 processor_set
68 Processor set to set maximum priority for.
69 .TP 15
70 .B
71 priority
72 New priority.
73 .TP 15
74 .B
75 change_threads
76 Change maximum priority of existing threads if TRUE.
77
78 .SH DESCRIPTION
79 The priority of a processor set is used only for newly created threads
80 (thread's maximum priority is set to processor set's) and the assignment
81 of threads to the set (thread's maximum priority is reduced if it exceeds
82 the set's maximum priority, thread's priority is similarly reduced).
83 .B processor_set_max_priority
84 changes this priority. It also sets the maximum priority of
85 all threads assigned to the processor set
86 to this new priority if
87 .B change_threads
88 is TRUE. If this maximum priority is less than the priorities of any
89 of these threads, their priorities will also be set to this new value.
90
91 .SH DIAGNOSTICS
92 .TP 25
93 KERN_SUCCESS
94 The call succeeded.
95 .TP 25
96 KERN_INVALID_ARGUMENT
97 .B task
98 is not a task, or
99 .B priority
100 is not a valid priority.
101
102 .SH BUGS
103 Availability limited. This call was referred to as
104 .B processor_set_priority
105 in some previous documentation.
106
107 .SH SEE ALSO
108 .B thread_priority, task_priority, thread_assign
109
110
111
112
Cache object: 05e3c2f947119580eb9b99324e5af76d
|