osfmk/man/host_kernel_version.html
Function - Return kernel version information for a host.
**kern\_return\_t host\_kernel\_version**** (host\_t **host,** kernel\_version\_t **version** );**
host[in host-name send right] The name (or control) port for the host for which information is to be obtained.
version[out array of char] Character string describing the kernel version executing on host.
The host_kernel_version function returns the version string compiled into the kernel executing on host at the time it was built. This describes the version of the kernel. The constant KERNEL_VERSION_MAX (in *L*O) should be used to dimension storage for the returned string if the kernel_version_t declaration is not used.
Only generic errors apply.
Functions: host_info.