linux驱动代码里面完成shutdown或者reboot的调用方法
1. reboot:#include <linux/reboot.h>kernel_restart(NULL);2. reboot -p或者shutdown:#include <linux/reboot.h>kernel_power_off();
·
1. reboot:
#include <linux/reboot.h>
kernel_restart(NULL);
2. reboot -p或者shutdown:
#include <linux/reboot.h>
kernel_power_off();
更多推荐
所有评论(0)