reboot.2
来自「minix操作系统最新版本(3.1.1)的源代码」· 2 代码 · 共 63 行
2
63 行
.TH REBOOT 2.SH NAMEreboot \- close down the system or reboot.SH SYNTAX.ft B.nf#define _MINIX_SOURCE 1#include <unistd.h>int reboot(int \fIhow\fP, ...).fi.ft P.SH DESCRIPTION.B Reboot()is used to close down the system. It allows several ways of shuttingdown depending on.IR how :.PP.TP 5.BI "reboot(RBT_HALT)"Halt the system and return to the monitor prompt..TP.BI "reboot(RBT_REBOOT)"Reboot the system by letting the monitor execute the "boot" command..TP.BI "reboot(RBT_PANIC)"Cause a system panic. This is not normally done from user mode, but byservers using the.B sys_abort()kernel call..TP.BI "reboot(RBT_MONITOR" ", code, length" ")"Halt the system and let the monitor execute the given code of the givenlength..RI ( codeis of type.B "char *"and.I lengthof type.BR size_t .).TP.BI "reboot(RBT_RESET)"Reboot the system with a hardware reset..PP.B Reboot()may only be executed by the super-user..SH DIAGNOSTICSIf the call succeeds, it never returns. If something went wrong,the return value is -1 and an error is indicated by.BR errno ..SH SEE ALSO.BR shutdown (8),.BR reboot (8),.BR halt (8),.BR sync (2)..SH NOTESMINIX 3 can not return to the monitor if running in real mode. This meansthat most of the reboot functions will change to a system reset..SH AUTHOREdvard Tuinder (v892231@si.hhs.NL)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?