summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys-utils/hwclock.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h
index b5b72d4..91b10a7 100644
--- a/sys-utils/hwclock.h
+++ b/sys-utils/hwclock.h
@@ -1,3 +1,11 @@
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
#ifndef HWCLOCK_CLOCK_H
#define HWCLOCK_CLOCK_H
@@ -53,6 +61,8 @@ struct hwclock_control {
set:1,
update:1,
universal:1, /* will store hw_clock_is_utc() return value */
+ vl_read:1,
+ vl_clear:1,
verbose:1;
};
@@ -88,6 +98,9 @@ extern int get_param_rtc(const struct hwclock_control *ctl,
const char *name, uint64_t *id, uint64_t *value);
extern int set_param_rtc(const struct hwclock_control *ctl, const char *name);
+extern int rtc_vl_read(const struct hwclock_control *ctl);
+extern int rtc_vl_clear(const struct hwclock_control *ctl);
+
extern void __attribute__((__noreturn__))
hwclock_exit(const struct hwclock_control *ctl, int status);