how to implement watchdog driver in linux