RB_REBOOT The system is rebooted. RB_HALT The system is halted. RB_POWEROFF The system is powered off.
EINVAL code was not a valid value. EPERM The current process does not have sufficient privilege to halt the system.