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