reboot.2

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 78 行

2
78
字号
.\" SCCSID: @(#)reboot.2	8.1	9/11/90.TH reboot 2.SH Namereboot \- reboot system or halt processor.SH Syntax.nf.B #include <sys/reboot.h>.PP.B reboot(\fIhowto\fP).B int \fIhowto\fP;.fi.SH Arguments.TP 8.I howtoThe.I howtoargument is a mask of options passed to the bootstrap program..RS 8.PPThe bits of.I howtoare:.TPRB_HALTthe processor is simply halted; no reboot takes place.RB_HALT should be used with caution..TPRB_ASKNAMEInterpreted by the bootstrap program itself, causing it toinquire as to what file should be booted.  Normally, the system isbooted from the file \*(lqxx(0,0)vmunix\*(rq without asking..TPRB_SINGLENormally, the reboot procedure involves an automatic disk consistencycheck and then multi-user operations.  RB_SINGLE prevents the consistencycheck, rather simply booting the system with a single-user shell onthe console.RB_SINGLE is interpreted by theinit(8) program in the newly booted system.This switch is not available from the system call interface..PPOnly the superuser may.PN reboota machine..RE.SH Description.NXR "reboot system call".NXR "system" "rebooting"The.PN rebootsystem callreboots the system, and is invoked automaticallyin the event of unrecoverable system failures.The system call interface permits only RB_HALT or RB_AUTOBOOTto be passed to the reboot program; the other flagsare used in scripts stored on the console storage media or usedin manual bootstrap procedures.When none of these options(for example, RB_AUTOBOOT) is given, the system is rebootedfrom file .PN vmunix in the root file system of unit 0of a disk chosen in a processor-specific way.Normally, an automatic consistency check of the disks is then performed..SH Return ValuesIf successful, this call never returns.  Otherwise, a \-1is returned, and an error is stored in the global variable.IR errno ..SH DiagnosticsThe .PN reboot call fails under the following condition:.TP 15[EPERM]The caller is not the superuser..SH See Alsocrash(8v), halt(8), init(8), reboot(8)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?