return err;
}
-/*
+/**
* watchdog_ping - ping the watchdog
* @wdd: The watchdog device to ping
*
return HRTIMER_NORESTART;
}
-/*
+/**
* watchdog_start - wrapper to start the watchdog
* @wdd: The watchdog device to start
*
return err;
}
-/*
+/**
* watchdog_stop - wrapper to stop the watchdog
* @wdd: The watchdog device to stop
*
return err;
}
-/*
+/**
* watchdog_get_status - wrapper to get the watchdog status
* @wdd: The watchdog device to get the status from
*
return status;
}
-/*
+/**
* watchdog_set_timeout - set the watchdog timer timeout
* @wdd: The watchdog device to set the timeout for
* @timeout: Timeout to set in seconds
return err;
}
-/*
+/**
* watchdog_set_pretimeout - set the watchdog timer pretimeout
* @wdd: The watchdog device to set the timeout for
* @timeout: pretimeout to set in seconds
return err;
}
-/*
+/**
* watchdog_get_timeleft - wrapper to get the time left before a reboot
* @wdd: The watchdog device to get the remaining time from
* @timeleft: The time that's left
#define wdt_groups NULL
#endif
-/*
+/**
* watchdog_ioctl_op - call the watchdog drivers ioctl op if defined
* @wdd: The watchdog device to do the ioctl on
* @cmd: Watchdog command
return wdd->ops->ioctl(wdd, cmd, arg);
}
-/*
+/**
* watchdog_write - writes to the watchdog
* @file: File from VFS
* @data: User address of data
return len;
}
-/*
+/**
* watchdog_ioctl - handle the different ioctl's for the watchdog device
* @file: File handle to the device
* @cmd: Watchdog command
return err;
}
-/*
+/**
* watchdog_open - open the /dev/watchdog* devices
* @inode: Inode of device
* @file: File handle to device
kfree(wd_data);
}
-/*
+/**
* watchdog_release - release the watchdog device
* @inode: Inode of device
* @file: File handle to device
* stop the watchdog when we have received the magic char (and nowayout
* was not set), else the watchdog will keep running.
*
- * Always returns 0.
+ * Returns: Always 0.
*/
static int watchdog_release(struct inode *inode, struct file *file)
{
.dev_groups = wdt_groups,
};
-/*
+/**
* watchdog_cdev_register - register watchdog character device
* @wdd: Watchdog device
*
return 0;
}
-/*
+/**
* watchdog_cdev_unregister - unregister watchdog character device
* @wdd: Watchdog device
*