reboot(2)reboot(2)NAMEreboot - boot the system
SYNOPSISDESCRIPTION
causes the system to reboot. howto is a mask of reboot options (see
specified as follows:
A file system sync is performed (unless
is set) and the processor is rebooted from
the default device and file.
The processor is simply halted.
A sync of the file system is performed
unless the flag is set. should be used with
caution.
On systems with cellular architecture, all cells in the parti‐
tion are
rebooted in order to reconfigure the stable
complex configuration data. On systems with
non-cellular architecture, the default is A
sync of the file system is performed unless
the flag is set.
Shut down the system firmware to a "ready to reconfigure" state
and do not
reboot. This option can be used only in
combination with
A sync of the file system is not performed.
Unless the flag has been specified, reboot(2) unmounts all mounted file
systems and marks them clean so that it will not be necessary to run
fsck(1M) on these file systems when the system reboots.
Only users with appropriate privileges can reboot a machine.
RETURN VALUE
If successful, this call never returns. Otherwise, a −1 is returned
and is set to indicate the error.
ERRORS
fails if this condition is encountered:
[EPERM] The effective user ID of the caller is not a
user with appropriate privileges.
DEPENDENCIES
The default file and device for is on the current root device.
AUTHOR
was developed by HP and the University of California, Berkeley.
SEE ALSOreboot(1M), privileges(5).
reboot(2)