All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)reboot.2 4.1 (Berkeley) 05/09/85
#include <sys/reboot.h>reboot(howto) int howto;
An automatic consistency check of the disks is then normally performed.
The bits of howto are:
RB_HALT the processor is simply halted; no reboot takes place. This should be used with caution.
RB_ASKNAME Interpreted by the bootstrap program itself, causing it to inquire as to what file should be booted. Normally, the system is booted from the file \*(lqxx(0,0)vmunix\*(rq without asking, where xx is determined by a code in register r10 (which is known as devtype) at entry to the bootstrap program. The code corresponds to the major device number of the root file system, i.e. \*(lqmajor(rootdev)\*(rq. Currently, the following values of devtype are understood:
.ns
0 hp rm03/rm05/rm80/rp06 massbus disk 1 -- unused 2 up unibus disks (emulex sc21 w/ cdc/ampex/fujitsu drives) 3 rk rk07 unibus disks
up(0,0)vmunix.
RB_SINGLE Normally, the reboot procedure involves an automatic disk consistency check and then multi-user operations. This prevents the consistency check, rather simply booting the system with a single-user shell on the console, from the file system specified by r10. This switch is interpreted by the init (8) program in the newly booted system. This switch is not available from the system call interface.