This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Version

Kernel version handling and APIs related to kernel version being used.

API Reference

uint32_t sys_kernel_version_get(void)

Return the kernel version of the present build.

The kernel version is a four-byte value, whose format is described in the file “kernel_version.h”.

Returns

kernel version

SYS_KERNEL_VER_MAJOR(ver)
SYS_KERNEL_VER_MINOR(ver)
SYS_KERNEL_VER_PATCHLEVEL(ver)