xref: /xnu-8792.81.2/osfmk/man/task_basic_info.html (revision 19c3b8c28c31cb8130e034cfb5df6bf9ba342d90)
1*19c3b8c2SApple OSS Distributions<h2>task_basic_info</h2>
2*19c3b8c2SApple OSS Distributions<hr>
3*19c3b8c2SApple OSS Distributions<p>
4*19c3b8c2SApple OSS Distributions<strong>Structure</strong> - Defines basic information for a task.
5*19c3b8c2SApple OSS Distributions<h3>SYNOPSIS</h3>
6*19c3b8c2SApple OSS Distributions<pre>
7*19c3b8c2SApple OSS Distributions<strong>struct task_basic_info</strong>
8*19c3b8c2SApple OSS Distributions<strong>{</strong>
9*19c3b8c2SApple OSS Distributions       <strong>integer_t</strong>      <var>suspend_count</var><strong>;</strong>
10*19c3b8c2SApple OSS Distributions       <strong>vm_size_t</strong>       <var>virtual_size</var><strong>;</strong>
11*19c3b8c2SApple OSS Distributions       <strong>vm_size_t</strong>      <var>resident_size</var><strong>;</strong>
12*19c3b8c2SApple OSS Distributions       <strong>time_value_t</strong>       <var>user_time</var><strong>;</strong>
13*19c3b8c2SApple OSS Distributions       <strong>time_value_t</strong>     <var>system_time</var><strong>;</strong>
14*19c3b8c2SApple OSS Distributions       <strong>policy_t</strong>              <var>policy</var><strong>;</strong>
15*19c3b8c2SApple OSS Distributions<strong>};</strong>
16*19c3b8c2SApple OSS Distributions
17*19c3b8c2SApple OSS Distributions<strong>typedef struct task_basic_info* task_basic_info_t;</strong>
18*19c3b8c2SApple OSS Distributions</pre>
19*19c3b8c2SApple OSS Distributions<h3>FIELDS</h3>
20*19c3b8c2SApple OSS Distributions<dl>
21*19c3b8c2SApple OSS Distributions<dt> <var>suspend_count</var>
22*19c3b8c2SApple OSS Distributions<dd>
23*19c3b8c2SApple OSS DistributionsThe current suspend count for the task.
24*19c3b8c2SApple OSS Distributions     <p>
25*19c3b8c2SApple OSS Distributions<dt> <var>virtual_size</var>
26*19c3b8c2SApple OSS Distributions<dd>
27*19c3b8c2SApple OSS DistributionsThe number of virtual pages for the task.
28*19c3b8c2SApple OSS Distributions          <p>
29*19c3b8c2SApple OSS Distributions<dt> <var>resident_size</var>
30*19c3b8c2SApple OSS Distributions<dd>
31*19c3b8c2SApple OSS DistributionsThe number of resident pages for the task
32*19c3b8c2SApple OSS Distributions          <p>
33*19c3b8c2SApple OSS Distributions<dt> <var>user_time</var>
34*19c3b8c2SApple OSS Distributions<dd>
35*19c3b8c2SApple OSS DistributionsThe total user run time for terminated threads within the task.
36*19c3b8c2SApple OSS Distributions          <p>
37*19c3b8c2SApple OSS Distributions<dt> <var>system_time</var>
38*19c3b8c2SApple OSS Distributions<dd>
39*19c3b8c2SApple OSS DistributionsThe total system run time for terminated threads within the task.
40*19c3b8c2SApple OSS Distributions          <p>
41*19c3b8c2SApple OSS Distributions<dt> <var>policy</var>
42*19c3b8c2SApple OSS Distributions<dd>
43*19c3b8c2SApple OSS DistributionsDefault scheduling policy to apply to new threads.
44*19c3b8c2SApple OSS Distributions</dl>
45*19c3b8c2SApple OSS Distributions<h3>DESCRIPTION</h3>
46*19c3b8c2SApple OSS Distributions<p>
47*19c3b8c2SApple OSS DistributionsThe <strong>task_basic_info</strong> structure defines the basic information array for
48*19c3b8c2SApple OSS Distributionstasks.  The <strong>task_info</strong> function returns this array for a specified task.
49*19c3b8c2SApple OSS Distributions<h3>NOTES</h3>
50*19c3b8c2SApple OSS Distributions<p>
51*19c3b8c2SApple OSS DistributionsThis structure is machine word length sensitive due
52*19c3b8c2SApple OSS Distributionsto the presence of the
53*19c3b8c2SApple OSS Distributionsvirtual address sizes.
54*19c3b8c2SApple OSS Distributions<h3>RELATED INFORMATION</h3>
55*19c3b8c2SApple OSS Distributions<p>
56*19c3b8c2SApple OSS DistributionsFunctions:
57*19c3b8c2SApple OSS Distributions<a href="task_info.html"><strong>task_info</strong></a>.
58*19c3b8c2SApple OSS Distributions<p>
59*19c3b8c2SApple OSS DistributionsData Structures:
60*19c3b8c2SApple OSS Distributions<a href="task_thread_times_info.html"><strong>task_thread_times_info</strong></a>,
61*19c3b8c2SApple OSS Distributions<a href="policy_fifo_info.html"><strong>policy_fifo_info</strong></a>,
62*19c3b8c2SApple OSS Distributions<a href="policy_rr_info.html"><strong>policy_rr_info</strong></a>,
63*19c3b8c2SApple OSS Distributions<a href="policy_timeshare_info.html"><strong>policy_timeshare_info</strong></a>.
64