Package com.sun.jna.platform.unix
Interface Reboot
- 
- 
Field SummaryFields Modifier and Type Field Description static intRB_AUTOBOOTPerform a hard reset now.static intRB_DISABLE_CADDisable reboot using Ctrl-Alt-Delete keystroke.static intRB_ENABLE_CADEnable reboot using Ctrl-Alt-Delete keystroke.static intRB_HALT_SYSTEMstatic intRB_KEXECReboot system into new kernel.static intRB_POWER_OFFStop system and switch power off if possible.static intRB_SW_SUSPENDSuspend system using software suspend.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intreboot(int cmd)Stops/Reboots the machine
 
- 
- 
- 
Field Detail- 
RB_AUTOBOOTstatic final int RB_AUTOBOOT Perform a hard reset now.- See Also:
- Constant Field Values
 
 - 
RB_HALT_SYSTEMstatic final int RB_HALT_SYSTEM - See Also:
- Constant Field Values
 
 - 
RB_ENABLE_CADstatic final int RB_ENABLE_CAD Enable reboot using Ctrl-Alt-Delete keystroke.- See Also:
- Constant Field Values
 
 - 
RB_DISABLE_CADstatic final int RB_DISABLE_CAD Disable reboot using Ctrl-Alt-Delete keystroke.- See Also:
- Constant Field Values
 
 - 
RB_POWER_OFFstatic final int RB_POWER_OFF Stop system and switch power off if possible.- See Also:
- Constant Field Values
 
 - 
RB_SW_SUSPENDstatic final int RB_SW_SUSPEND Suspend system using software suspend.- See Also:
- Constant Field Values
 
 - 
RB_KEXECstatic final int RB_KEXEC Reboot system into new kernel.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
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:
- man 2 reboot
 
 
- 
 
-