⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reset.c

📁 这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自测试~但就算用来做参考资料也是非常好的
💻 C
字号:
/* * This file is subject to the terms and conditions of the GNU General Public * License.  See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 by Ralf Baechle * Copyright (C) 2001 MIPS Technologies, Inc. */#include <linux/kernel.h>#include <linux/types.h>#include <linux/reboot.h>#include <asm/reboot.h>/* * Urgs ...  Too many MIPS machines to handle this in a generic way. * So handle all using function pointers to machine specific * functions. */void (*_machine_restart)(char *command);void (*_machine_halt)(void);void (*_machine_power_off)(void);void machine_restart(char *command){	_machine_restart(command);}void machine_halt(void){	_machine_halt();}void machine_power_off(void){	_machine_power_off();}

⌨️ 快捷键说明

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