Documentation
IPS_GetKernelRunlevel
Require: IP-Symcon >= 4.0
int IPS_GetKernelRunlevel ()
Returns
Run level of the kernel
Description
This function returns the run level of the system.
Run level | Return value | Description |
---|---|---|
KR_CREATE | 10101 | Kernel is being created |
KR_INIT | 10102 | Kernel is being initialized, i.e., modules are loaded and instances created |
KR_READY | 10103 | Kernel is ready and running |
KR_UNINIT | 10104 | Kernel is being shut down and everything is quit cleanly |
KR_SHUTDOWN | 10105 | Kernel was shut down completely |
Example
echo IPS_GetKernelRunlevel(); // returns, e.g., 10103, if the run level is KR_READY