summaryrefslogtreecommitdiffstats
path: root/bsd/rtemsbsd/include/rtems/ntpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/rtemsbsd/include/rtems/ntpd.h')
-rw-r--r--bsd/rtemsbsd/include/rtems/ntpd.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/bsd/rtemsbsd/include/rtems/ntpd.h b/bsd/rtemsbsd/include/rtems/ntpd.h
index 00af1ea..096f87e 100644
--- a/bsd/rtemsbsd/include/rtems/ntpd.h
+++ b/bsd/rtemsbsd/include/rtems/ntpd.h
@@ -50,11 +50,32 @@ extern "C" {
*
* @param argv is the vector of arguments.
*
- * @return This function should never return. If it returns, then there is a
+ * @return This function only returns if @ref rtems_ntpd_stop is
+ * called or the daemon is already running Any other reason is a
* serious error.
*/
int rtems_ntpd_run(int argc, char **argv);
+/**
+ * @brief Stops the NTP daemon (nptd).
+ *
+ * The ntpd loop will exit when it next runs cleaning up. Use the
+ * @ref rtems_ntpd_running call to check if the daemon has stopped
+ * running.
+ *
+ * @return This function should never return. If it returns, then there is a
+ * serious error.
+ */
+void rtems_ntpd_stop(void);
+
+/**
+ * @brief Checks if the NTP daemon (nptd) is running?
+ *
+ * @return Return 1 if ntpd is running else 0 is returned.
+ */
+int rtems_ntpd_running(void);
+
+
#ifdef __cplusplus
}
#endif