Last Reviewed: 10/05/2007
Chinese translated version of Documentation/CodingStyle
If you have any comment or update to the content, please post to LKML directly.
However, if you have problem communicating in English you can also ask the
Chinese maintainer for help. Contact the Chinese maintainer, if this
translation is outdated or there is problem with translation.
Chinese maintainer: lin wei
---------------------------------------------------------------------
Documentation/CodingStyle的中文翻译
如果想评论或更新本文的内容,请直接发信到LKML。如果你使用英文交流有困难的话,也可
以向中文版维护者求助。如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。
以下为正文
WDT Watchdog Timer Interfaces For The Linux Operating System
LINUX操作系统下的WDT看门狗定时器接口
Alan Cox <alan@lxorguk.ukuu.org.uk>
ICS WDT501-P
ICS WDT501-P (no fan tachometer)(没有风扇转速)
ICS WDT500-P
All the interfaces provide /dev/watchdog, which when open must be written
to within a timeout or the machine will reboot. Each write delays the reboot
time another timeout. In the case of the software watchdog the ability to
reboot will depend on the state of the machines and interrupts. The hardware
boards physically pull the machine down off their own onboard timers and
will reboot from almost anything.
所有/dev/watchdog 所提供的接口 打开时必须被写入超时,不然机器会重启。
每当延迟一个就会重启另一个超时时间。在软件监视的能力的情况下重新启动
将取决于机器和中断的状态。硬件板物理机器拆毁其自带的定时器、
而且几乎所有的东西会重新启动
A second temperature monitoring interface is available on the WDT501P cards.
This provides /dev/temperature. This is the machine internal temperature in
degrees Fahrenheit. Each read returns a single byte giving the temperature.
第二代温度监控界面可在WDT501P卡上使用。他提供了/dev/temperature
这是机器的内部温度以华氏度为计量。每次读就返回一个提供温度的字节。
The third interface logs kernel messages on additional alert events.
第三个接口 记录额外的危险时间的内核信息。
The ICS ISA-bus wdt card cannot be safely probed for. Instead you need to
pass IO address and IRQ boot parameters. E.g.:
wdt.io=0x240 wdt.irq=11
ICS ISA-bus wdt卡片 不能被安全监测。你需要
通过IO地址和IRQ引导参数。例如:
wdt.io=0x240 wdt.irq=11
Other "wdt" driver parameters are:
其余"WDT"驱动参数是:
heartbeat Watchdog heartbeat in seconds (default 60)
心跳 看门狗每秒的次数(默认是 60)
nowayout Watchdog cannot be stopped once started (kernel
build parameter)
没有退路 一旦 Watchdog 启动就不能停止(内核建立参数化)
tachometer WDT501-P Fan Tachometer support (0=disable, default=0)
转速表 WDT501-P 风扇转速支持(0=无效,默认=0)
type WDT501-P Card type (500 or 501, default=500)
类型 WDT501-P 卡类型(500或者501,默认=500)
Features
特点
--------
WDT501P WDT500P
Reboot Timer X X
重启定时器
External Reboot X X
外部重启
I/O Port Monitor o o
I/O 端口监控
Temperature X o
温度
Fan Speed X o
风扇速度
Power Under X o
电量 使用
Power Over X o
供电
Overheat X o
过热
The external event interfaces on the WDT boards are not currently supported.
Minor numbers are however allocated for it.
WDT板目前不支持外部事件接口
然而,给他分配次要编号。
Example Watchdog Driver: see Documentation/watchdog/src/watchdog-simple.c
例如看门狗驱动程序:查看文档/watchdog/src/watchdog-simple.c
Chinese translated version of Documentation/CodingStyle
If you have any comment or update to the content, please post to LKML directly.
However, if you have problem communicating in English you can also ask the
Chinese maintainer for help. Contact the Chinese maintainer, if this
translation is outdated or there is problem with translation.
Chinese maintainer: lin wei
---------------------------------------------------------------------
Documentation/CodingStyle的中文翻译
如果想评论或更新本文的内容,请直接发信到LKML。如果你使用英文交流有困难的话,也可
以向中文版维护者求助。如果本翻译更新不及时或者翻译存在问题,请联系中文版维护者。
以下为正文
WDT Watchdog Timer Interfaces For The Linux Operating System
LINUX操作系统下的WDT看门狗定时器接口
Alan Cox <alan@lxorguk.ukuu.org.uk>
ICS WDT501-P
ICS WDT501-P (no fan tachometer)(没有风扇转速)
ICS WDT500-P
All the interfaces provide /dev/watchdog, which when open must be written
to within a timeout or the machine will reboot. Each write delays the reboot
time another timeout. In the case of the software watchdog the ability to
reboot will depend on the state of the machines and interrupts. The hardware
boards physically pull the machine down off their own onboard timers and
will reboot from almost anything.
所有/dev/watchdog 所提供的接口 打开时必须被写入超时,不然机器会重启。
每当延迟一个就会重启另一个超时时间。在软件监视的能力的情况下重新启动
将取决于机器和中断的状态。硬件板物理机器拆毁其自带的定时器、
而且几乎所有的东西会重新启动
A second temperature monitoring interface is available on the WDT501P cards.
This provides /dev/temperature. This is the machine internal temperature in
degrees Fahrenheit. Each read returns a single byte giving the temperature.
第二代温度监控界面可在WDT501P卡上使用。他提供了/dev/temperature
这是机器的内部温度以华氏度为计量。每次读就返回一个提供温度的字节。
The third interface logs kernel messages on additional alert events.
第三个接口 记录额外的危险时间的内核信息。
The ICS ISA-bus wdt card cannot be safely probed for. Instead you need to
pass IO address and IRQ boot parameters. E.g.:
wdt.io=0x240 wdt.irq=11
ICS ISA-bus wdt卡片 不能被安全监测。你需要
通过IO地址和IRQ引导参数。例如:
wdt.io=0x240 wdt.irq=11
Other "wdt" driver parameters are:
其余"WDT"驱动参数是:
heartbeat Watchdog heartbeat in seconds (default 60)
心跳 看门狗每秒的次数(默认是 60)
nowayout Watchdog cannot be stopped once started (kernel
build parameter)
没有退路 一旦 Watchdog 启动就不能停止(内核建立参数化)
tachometer WDT501-P Fan Tachometer support (0=disable, default=0)
转速表 WDT501-P 风扇转速支持(0=无效,默认=0)
type WDT501-P Card type (500 or 501, default=500)
类型 WDT501-P 卡类型(500或者501,默认=500)
Features
特点
--------
WDT501P WDT500P
Reboot Timer X X
重启定时器
External Reboot X X
外部重启
I/O Port Monitor o o
I/O 端口监控
Temperature X o
温度
Fan Speed X o
风扇速度
Power Under X o
电量 使用
Power Over X o
供电
Overheat X o
过热
The external event interfaces on the WDT boards are not currently supported.
Minor numbers are however allocated for it.
WDT板目前不支持外部事件接口
然而,给他分配次要编号。
Example Watchdog Driver: see Documentation/watchdog/src/watchdog-simple.c
例如看门狗驱动程序:查看文档/watchdog/src/watchdog-simple.c