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