Interface Reboot

  • All Known Subinterfaces:
    LibC, LibC, LibCAPI, SystemB

    public interface Reboot
    Contains definitions related to the reboot API
    Author:
    Lyor Goldstein
    • Field Detail

      • RB_ENABLE_CAD

        static final int RB_ENABLE_CAD
        Enable reboot using Ctrl-Alt-Delete keystroke.
        See Also:
        Constant Field Values
      • RB_DISABLE_CAD

        static final int RB_DISABLE_CAD
        Disable reboot using Ctrl-Alt-Delete keystroke.
        See Also:
        Constant Field Values
      • RB_POWER_OFF

        static final int RB_POWER_OFF
        Stop system and switch power off if possible.
        See Also:
        Constant Field Values
      • RB_SW_SUSPEND

        static final int RB_SW_SUSPEND
        Suspend system using software suspend.
        See Also:
        Constant Field Values
    • Method Detail

      • reboot

        int reboot​(int cmd)
        Stops/Reboots the machine
        Parameters:
        cmd - The command
        Returns:
        If successful, this call never returns. Otherwise, a -1 is returned and an error is returned in the global variable errno.
        See Also:
        man 2 reboot