Sco Unix Device Driver |
|||||||||||||||
SCO
UNIX DEVICE DRIVER and TEST SPFTWARE How to install Watchdog Driver >>> Install
Decision Watch Dog Driver to UNIX <<< |
|||||||||||||||
|
|||||||||||||||
>>>
Remove Decision Watch Dog Driver from UNIX <<< 1. Login as a root user 2. # cd /usr/sys/whdg 3. Remove the Watch Dog Driver from the kernel # ./remove |
|||||||||||||||
|
|||||||||||||||
>>>
Default Configuration of Decision Watch Dog Card <<< Refresh time : 4 sec |
|||||||||||||||
|
|||||||||||||||
>>>
Default Device Names to the Watch Dog Driver <<< /dev/whdg |
|||||||||||||||
|
|||||||||||||||
>>>
Enclosed Uilities for the Watch Dog Driver <<< 1. To turn on the watch dog # /etc/whdg_on |
|||||||||||||||
|
|||||||||||||||
>>>
Programming Examples to turn on/off the watch dog 1. You may reference the file "whdg.c" for - how to turn on the watchdog functionality for monitoring the whole system - how to turn on the watchdog fucntionality for monitoring both the whole system and specific user-level processes - how to turn off the watchdog funcationality - how applications regularly notify the wathdog driver that they are alive - how to power on/off the watchdog box 1. To turn on the watchdog for monitoring the whole system ........... if ((whdg_h = open("/dev/whdg", O_WRONLY)) == -1) { printf("There is no Watch Dog device %s\n", WATCH_DOG_DEV); return FALSE; } ...........
...........
do { /* /*
#define MCPOWERON
(MIOC | 0xF8) boolean_t return FALSE; return TRUE; boolean_t return FALSE; return TRUE; |
|||||||||||||||
|
|||||||||||||||
HOME | |||||||||||||||