1 <h2>processor_set_info
</h2>
4 <strong>Function
</strong> - Return processor set state according to caller-specified flavor.
7 <strong>kern_return_t processor_set_info
</strong>
8 <strong>(processor_set_name_t
</strong> <var>processor_set_name
</var>,
9 <strong>int
</strong> <var>flavor
</var>,
10 <strong>host_t
</strong> <var>host
</var>,
11 <strong>processor_set_info_t
</strong> <var>processor_set_info
</var>,
12 <strong>mach_msg_type_number_t
</strong> <var>processor_set_info_count
</var><strong>);
</strong>
16 <dt> <var>processor_set_name
</var>
18 [in processor-set-name send right]
19 A processor set name (or control)
20 port for which information is desired.
21 <dt> <var>flavor
</var>
24 The type of information requested.
26 <dt> <strong>PROCESSOR_SET_BASIC_INFO
</strong>
28 Basic information concerning the processor set (number of
29 assigned processors and default policy). The returned structure
30 is defined by
<strong>processor_set_basic_info
</strong>.
31 <dt> <strong>PROCESSOR_SET_TIMESHARE_DEFAULT
</strong>
33 The base attributes for the timeshare scheduling policy. The
34 returned structure is
<strong>policy_timeshare_base
</strong>.
35 <dt> <strong>PROCESSOR_SET_FIFO_DEFAULT
</strong>
37 The base attributes for the FIFO scheduling policy. The
38 returned structure is
<strong>policy_fifo_base
</strong>.
39 <dt> <strong>PROCESSOR_SET_RR_DEFAULT
</strong>
41 The base attributes for the round-robin scheduling policy. The
42 returned structure is
<strong>policy_rr_base
</strong>.
43 <dt> <strong>PROCESSOR_SET_TIMESHARE_LIMITS
</strong>
45 Limits on the allowed timeshare policy attributes. The
46 returned structure is defined by
<strong>policy_timeshare_limit
</strong>.
47 <dt> <strong>PROCESSOR_SET_RR_LIMITS
</strong>
49 Limits on the allowed round robin policy attributes. The
50 returned structure is defined by
<strong>policy_rr_limit
</strong>.
51 <dt> <strong>PROCESSOR_SET_FIFO_LIMITS
</strong>
53 Limits on the allowed first-in, first-out policy attributes. The
54 returned structure is defined by
<strong>policy_fifo_limit
</strong>.
55 <dt> <strong>PROCESSOR_SET_ENABLED_POLICIES
</strong>
57 The set of enabled policies. The returned data is a bit-vector.
61 [out host-name send right]
62 The name port for the host on which the
63 processor set resides.
64 <dt> <var>processor_set_info
</var>
67 Information about the processor set.
68 <dt> <var>processor_set_info_count
</var>
71 On input, the maximum size of the buffer; on output, the
72 size returned (in natural-sized units).
76 The
<strong>processor_set_info
</strong> function returns selected information
77 for a processor set, as specified by
<var>flavor
</var>.
80 A processor set has a single default scheduling policy in effect for it (as
81 returned by
<strong>PROCESSOR_SET_BASIC_INFO
</strong>), so only one of the default
82 scheduling structures has valid information. On the other hand,
84 maintains limits for all defined scheduling policies, so all
85 of the scheduling limit
86 structures return valid values.
87 <h3>RETURN VALUES
</h3>
89 Only generic errors apply.
90 <h3>RELATED INFORMATION
</h3>
93 <a href=
"processor_set_statistics.html">processor_set_statistics
</a>,
94 <a href=
"processor_set_create.html">processor_set_create
</a>,
95 <a href=
"processor_set_default.html">processor_set_default
</a>,
96 <a href=
"processor_assign.html">processor_assign
</a>,
97 <a href=
"P_set_policy_control.html">processor_set_policy_control
</a>.
100 <a href=
"processor_set_basic_info.html">processor_set_basic_info
</a>,
101 <a href=
"policy_timeshare_info.html">policy_timeshare_info
</a>,
102 <a href=
"policy_rr_info.html">policy_rr_info
</a>,
103 <a href=
"policy_fifo_info.html">policy_fifo_info
</a>.