HarmonyOS
watchdog 标签描述

使用 都是通过/dev/watchdog设备节点来操作使用通过命令 写入除大写字母‘V’外的任意字符,开启看门狗,每44秒内需要写入一次(喂狗)echoA>/dev/watchdog开启看门狗,并且内核会每隔22秒自动喂一次狗echoV>/dev/watchdog 通过应用程序 示例如下: include<stdio.h> include<stdlib.h> include<unistd.h> include<fcntl.h> intmain(void) { /通过open来启动watchdog/ intfd=open("/de...