• Wim Van Sebroeck's avatar
    [WATCHDOG] mpc5200_wdt clean-up · de81225a
    Wim Van Sebroeck authored
    * Add MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
    * Add mandatory WDIOC_GETSTATUS and WDIOC_GETBOOTSTATUS ioctl's.
    * If unknown ioctl is used we should return -ENOTTY.
    * All watchdog device drivers are VFSs (Virtual File Systems).
      We thus return a nonseekable_open(inode, file) when we open the VFS.
    * Make sure that /dev/watchdog can be opened by 1 parent
    * Add spin-locking to prevent that forked children can disturb
      each other's operations.
    Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
    de81225a
mpc5200_wdt.c 6.67 KB