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