一.用c语言在linux怎样调用reboot函数重启系统
可以直接调用reboot函数
如
reboot(0);
也可以通过system接口 调用
system("reboot");
二.linux驱动代码里面完成shutdown或者reboot的调用方法
1. reboot:
#include <linux/reboot.h>
kernel_restart(NULL);
2. reboot -p或者shutdown:
#include <linux/reboot.h>
kernel_power_off();
更多资料: