我們為什么要實現/使用我們的看門狗而不是Linux默認看門狗?

[英]Why should we implement/use our watchdog instead of Linux default watchdog?


I am studying Android driver/kernel. I find that there are 2 set of watchdogs:

我正在學習Android驅動程序/內核。我發現有兩套看門狗:

  1. kernel/watchdog.c
  2. /drivers/watchdog/tegra_wdt.c

Both them are used to recovery the system as system hang on an event (e.g. infinite loop).

當系統掛起事件(例如無限循環)時,它們都用於恢復系統。

The first one is enabled in system boot time by default, but many people still implementing their watchdog in /drivers/watchdog/ folder for specific driver. I confuse about this. Why should we need multiple watchdog? Is any one know about the "philosophy" about this?

默認情況下,第一個在系統啟動時啟用,但許多人仍在/ drivers / watchdog /文件夾中為特定驅動程序實現其監視程序。我對此感到困惑。我們為什么需要多個看門狗?有人知道關於這個的“哲學”嗎?

1 个解决方案

#1


-1  

Because Watchdog is used for the secure thread, with the help of this we can stop the thread so it will not be able to perforrm any longer.

因為Watchdog用於安全線程,在此幫助下我們可以停止線程,因此它將無法再執行。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2012/06/07/195cd24e893dc7457e381649b77e65a9.html



 
  © 2014-2022 ITdaan.com 联系我们: