linux watchdog
2016-01-04 17:24
706 查看
watchdog_device
watchdog_ops
watchdog_info
static struct class *watchdog_class;
void watchdog_check_min_max_timeout(struct watchdog_device *wdd)
int watchdog_init_timeout(struct watchdog_device *wdd, unsigned int timeout_parm, struct device *dev)
watchdog_ping: ping the watchdog.
watchdog_start: wrapper to start the watchdog.
watchdog_stop: wrapper to stop the watchdog.
watchdog_get_status: wrapper to get the watchdog status.
watchdog_set_timeout: set the watchdog timer timeout
watchdog_get_timeleft: wrapper to get the time left before a reboot
watchdog_ioctl_op: call the watchdog drivers ioctl op if defined
need read the follow files in kernel/deviers/watchdog/ folder:
watchdog_core.c watchdog_core.h watchdog_dev.c
watchdog_dev supply file interface to applications and watchdog_core supply interface to specific hardware's driver, the specific watchdog driver need supply the related watchdog_ops something like .start and .stop is must.
watchdog_ping is notify watchdog hardware to delay another timeout to reboot the hardware. in someplace the member .ping and .start of watchdog_ops are same.
need read the follow files in Documents/watchdog/ folder:
watchdog-api.txt watchdog-kernel-api.txt wdt.txt
watchdog_ops
watchdog_info
static struct class *watchdog_class;
void watchdog_check_min_max_timeout(struct watchdog_device *wdd)
int watchdog_init_timeout(struct watchdog_device *wdd, unsigned int timeout_parm, struct device *dev)
watchdog_ping: ping the watchdog.
watchdog_start: wrapper to start the watchdog.
watchdog_stop: wrapper to stop the watchdog.
watchdog_get_status: wrapper to get the watchdog status.
watchdog_set_timeout: set the watchdog timer timeout
watchdog_get_timeleft: wrapper to get the time left before a reboot
watchdog_ioctl_op: call the watchdog drivers ioctl op if defined
need read the follow files in kernel/deviers/watchdog/ folder:
watchdog_core.c watchdog_core.h watchdog_dev.c
watchdog_dev supply file interface to applications and watchdog_core supply interface to specific hardware's driver, the specific watchdog driver need supply the related watchdog_ops something like .start and .stop is must.
watchdog_ping is notify watchdog hardware to delay another timeout to reboot the hardware. in someplace the member .ping and .start of watchdog_ops are same.
need read the follow files in Documents/watchdog/ folder:
watchdog-api.txt watchdog-kernel-api.txt wdt.txt
相关文章推荐
- Linux查看CPU和内存使用情况
- openfire源码修改后如何打包部署到linux服务器上
- linux下删除乱码文件
- Linux 下log4cxx环境配置
- Linux下gsoap实现webservice功能
- windows设置通过NFS连接到Linux共享数据
- linux系统命令strace
- linux 小结
- linux 命令 —— useradd
- 分享几种Linux软件的安装方法
- linux中升级jdk的方法
- 【转】Linux 的启动流程
- linux中添加开机自启服务的方法
- 禁用centos 7网卡预测命名规则
- Linux中文件权限目录权限的意义及权限对文件目录的意义
- linux 安装配置 rsync服务
- 20160104 Linux下常见命令
- 在linux下配置javaWeb项目.sh部署脚本
- Linux用户空间与内核空间
- Linux 系统应用编程——文件I/O