加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 将’V’写入看门狗设备文件的含义

发布时间:2020-12-13 22:59:33 所属栏目:Linux 来源:网络整理
导读:当我们做回声V时意味着什么?的/ dev /看门狗?一篇文章说它可以防止意外停止看门狗.我不清楚这个目的. 解决方法 根据内核文档,这称为“魔术关闭”功能 http://lxr.free-electrons.com/source/Documentation/watchdog/watchdog-api.txt Magic Close feature:
当我们做回声V>时意味着什么?的/ dev /看门狗?一篇文章说它可以防止意外停止看门狗.我不清楚这个目的.

解决方法

根据内核文档,这称为“魔术关闭”功能
http://lxr.free-electrons.com/source/Documentation/watchdog/watchdog-api.txt

Magic Close feature:

If a driver supports "Magic Close",the driver will not disable the
watchdog unless a specific magic character 'V' has been sent to
/dev/watchdog just before closing the file.  If the userspace daemon
closes the file without sending this special character,the driver
will assume that the daemon (and userspace in general) died,and will
stop pinging the watchdog without disabling it first.  This will then
cause a reboot if the watchdog is not re-opened in sufficient time.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读