Back to Darwin Xnu

Host Kernel Version

osfmk/man/host_kernel_version.html

latest911 B
Original Source

host_kernel_version


Function - Return kernel version information for a host.

SYNOPSIS

**kern\_return\_t host\_kernel\_version**** (host\_t **host,** kernel\_version\_t **version** );**

PARAMETERS

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.

DESCRIPTION

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.

RETURN VALUES

Only generic errors apply.

Functions: host_info.