[PATCH 02/17] sandbox: Add missing comments for os_alarm()

Simon Glass sjg at chromium.org
Sun Oct 30 02:47:04 CET 2022


Add the documentation to avoid a warning with 'make htmldocs'.

Fixes: 10107efedd5 ("sandbox: add SIGALRM-based watchdog device")

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/os.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/os.h b/include/os.h
index 54874f5e0e8..0415f0f0e7a 100644
--- a/include/os.h
+++ b/include/os.h
@@ -110,6 +110,10 @@ void os_exit(int exit_code) __attribute__((noreturn));
 
 /**
  * os_alarm() - access to the OS alarm() system call
+ *
+ * @seconds: number of seconds before the signal is sent
+ * Returns: number of seconds remaining until any previously scheduled alarm was
+ * due to be delivered; 0 if there was no previously scheduled alarm
  */
 unsigned int os_alarm(unsigned int seconds);
 
-- 
2.38.1.273.g43a17bfeac-goog



More information about the U-Boot mailing list