Top Description Fields Methods
com.sun.jna.platform.unix

public Interface Reboot

Known Direct Subinterfaces
com.sun.jna.platform.unix.LibCAPI

Contains definitions related to the reboot API
Author
Lyor Goldstein

Field Summary

Modifier and TypeField and Description
public static final int
RB_AUTOBOOT

Perform a hard reset now.

public static final int
RB_DISABLE_CAD

Disable reboot using Ctrl-Alt-Delete keystroke.

public static final int
RB_ENABLE_CAD

Enable reboot using Ctrl-Alt-Delete keystroke.

public static final int
public static final int
RB_KEXEC

Reboot system into new kernel.

public static final int
RB_POWER_OFF

Stop system and switch power off if possible.

public static final int
RB_SW_SUSPEND

Suspend system using software suspend.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

If successful, this call never returns. Otherwise, a -1 is returned and an error is returned in the global variable errno.
reboot
(int
The command
cmd
)

Stops/Reboots the machine

Field Detail

RB_AUTOBOOTback to summary
public static final int RB_AUTOBOOT

Perform a hard reset now.

RB_DISABLE_CADback to summary
public static final int RB_DISABLE_CAD

Disable reboot using Ctrl-Alt-Delete keystroke.

RB_ENABLE_CADback to summary
public static final int RB_ENABLE_CAD

Enable reboot using Ctrl-Alt-Delete keystroke.

RB_HALT_SYSTEMback to summary
public static final int RB_HALT_SYSTEM
RB_KEXECback to summary
public static final int RB_KEXEC

Reboot system into new kernel.

RB_POWER_OFFback to summary
public static final int RB_POWER_OFF

Stop system and switch power off if possible.

RB_SW_SUSPENDback to summary
public static final int RB_SW_SUSPEND

Suspend system using software suspend.

Method Detail

rebootback to summary
public int reboot(int cmd)

Stops/Reboots the machine

Parameters
cmd:int

The command

Returns:int

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