xref: /xnu-10063.141.1/osfmk/man/host_kernel_version.html (revision d8b80295118ef25ac3a784134bcf95cd8e88109f)
1*d8b80295SApple OSS Distributions<h2>host_kernel_version</h2>
2*d8b80295SApple OSS Distributions<hr>
3*d8b80295SApple OSS Distributions<p>
4*d8b80295SApple OSS Distributions<strong>Function</strong> - Return kernel version information for a host.
5*d8b80295SApple OSS Distributions<h3>SYNOPSIS</h3>
6*d8b80295SApple OSS Distributions<pre>
7*d8b80295SApple OSS Distributions<strong>kern_return_t   host_kernel_version</strong>
8*d8b80295SApple OSS Distributions                <strong>(host_t</strong>                                    <var>host</var>,
9*d8b80295SApple OSS Distributions                 <strong>kernel_version_t</strong>                       <var>version</var><strong>);</strong>
10*d8b80295SApple OSS Distributions</pre>
11*d8b80295SApple OSS Distributions<h3>PARAMETERS</h3>
12*d8b80295SApple OSS Distributions<dl>
13*d8b80295SApple OSS Distributions<p>
14*d8b80295SApple OSS Distributions<dt> <var>host</var>
15*d8b80295SApple OSS Distributions<dd>
16*d8b80295SApple OSS Distributions[in host-name send right]
17*d8b80295SApple OSS DistributionsThe name (or control) port for the host for
18*d8b80295SApple OSS Distributionswhich information is to be obtained.
19*d8b80295SApple OSS Distributions<p>
20*d8b80295SApple OSS Distributions<dt> <var>version</var>
21*d8b80295SApple OSS Distributions<dd>
22*d8b80295SApple OSS Distributions[out array of <var>char</var>]
23*d8b80295SApple OSS DistributionsCharacter string describing the kernel version
24*d8b80295SApple OSS Distributionsexecuting on <var>host</var>.
25*d8b80295SApple OSS Distributions</dl>
26*d8b80295SApple OSS Distributions<h3>DESCRIPTION</h3>
27*d8b80295SApple OSS Distributions<p>
28*d8b80295SApple OSS DistributionsThe <strong>host_kernel_version</strong> function returns the version
29*d8b80295SApple OSS Distributionsstring compiled into the
30*d8b80295SApple OSS Distributionskernel executing on <var>host</var> at the time it was built.  This describes
31*d8b80295SApple OSS Distributionsthe version of the kernel.  The constant <strong>KERNEL_VERSION_MAX</strong> (in
32*d8b80295SApple OSS Distributions\*L<mach/host_info.h>\*O)
33*d8b80295SApple OSS Distributionsshould be used to dimension storage for the returned string if the
34*d8b80295SApple OSS Distributions<var>kernel_version_t</var> declaration is not used.
35*d8b80295SApple OSS Distributions<h3>RETURN VALUES</h3>
36*d8b80295SApple OSS Distributions<p>
37*d8b80295SApple OSS DistributionsOnly generic errors apply.
38*d8b80295SApple OSS Distributions<h3>RELATED INFORMATION</h3>
39*d8b80295SApple OSS Distributions<p>
40*d8b80295SApple OSS DistributionsFunctions:
41*d8b80295SApple OSS Distributions<a href="host_info.html"><strong>host_info</strong></a>.
42