Package com.sun.jna.platform.unix
Interface Reboot
public interface Reboot
Contains definitions related to the 
reboot API- Author:
- Lyor Goldstein
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intPerform a hard reset now.static final intDisable reboot using Ctrl-Alt-Delete keystroke.static final intEnable reboot using Ctrl-Alt-Delete keystroke.static final intstatic final intReboot system into new kernel.static final intStop system and switch power off if possible.static final intSuspend system using software suspend.
- 
Method Summary
- 
Field Details- 
RB_AUTOBOOTstatic final int RB_AUTOBOOTPerform a hard reset now.- See Also:
 
- 
RB_HALT_SYSTEMstatic final int RB_HALT_SYSTEM- See Also:
 
- 
RB_ENABLE_CADstatic final int RB_ENABLE_CADEnable reboot using Ctrl-Alt-Delete keystroke.- See Also:
 
- 
RB_DISABLE_CADstatic final int RB_DISABLE_CADDisable reboot using Ctrl-Alt-Delete keystroke.- See Also:
 
- 
RB_POWER_OFFstatic final int RB_POWER_OFFStop system and switch power off if possible.- See Also:
 
- 
RB_SW_SUSPENDstatic final int RB_SW_SUSPENDSuspend system using software suspend.- See Also:
 
- 
RB_KEXECstatic final int RB_KEXECReboot system into new kernel.- See Also:
 
 
- 
- 
Method Details- 
rebootint 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:
 
 
-