]> git.ipfire.org Git - thirdparty/systemd.git/commit
watchdog: allow a device path to be specified
authorEdward A. James <eajames@us.ibm.com>
Fri, 8 Dec 2017 17:26:30 +0000 (11:26 -0600)
committerEdward A. James <eajames@us.ibm.com>
Fri, 8 Dec 2017 17:26:30 +0000 (11:26 -0600)
commite4c98db335673dcbd7cff3add516db92861302b2
tree98f29186bf447febc09558afd5870450597a7e85
parent8208c8f25d47d9631a43969e3d458a94ad07b1d6
watchdog: allow a device path to be specified

Currently systemd hardcodes the use of /dev/watchdog. This is a legacy
chardev that points to watchdog0 in the system.

Modify the watchdog API to allow a different device path to be passed
and stored. Opening the watchdog defaults to /dev/watchdog, maintaining
existing behavior.
src/shared/watchdog.c
src/shared/watchdog.h