关机和重启在Linux Kernel中的哪些函数里实现。reboot的最终实现在arch_reset()函数,它通常定义在arch/arm/mach-xxx/include/mach/system.h里。system.h被ARM kernel的public code应用,因此你需要定义这个头文件,并实现它。arch_reset的函数原型为void arch_reset(char mode)
void arch_reset(char mode) 关机需要将pm_power_off这个函数指针指向你自己的实现函数。函数指针是这样定义的void (*pm_power_off)(void); Linux下的SVN使用---命令行控的最爱Ubuntu下Nessus安装使用相关资讯 Linux Kernel
- Linux Kernel 3.14系列结束支持 (今 14:24)
- Linux kernel 2.6.32 LTS 将于下个 (01月31日)
- 怎样在 CentOS 7 上安装 Kernel 4. (05/15/2015 11:28:39)
| - Linux Kernel 开发报告 25 周年版 (09月10日)
- Linux Kernel 4.1.15发布 (12/15/2015 20:54:13)
- Linux Kernel stable 3.19.7/4.0.2 (05/07/2015 08:50:31)
|
本文评论 查看全部评论 (0)