]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: add support for RTC_VL_READ/RTC_VL_CLR ioctls
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 13 Jun 2023 10:14:28 +0000 (12:14 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 22 Jun 2023 08:27:36 +0000 (10:27 +0200)
commit76cf1753f4a107fb9c7edf0ad2c57059934b9df7
treecfc17db6d22f7daeab064b95e121db0edf2506cd
parent60c81b3272d03959dfee465f1ecaf40ba3e70cb3
hwclock: add support for RTC_VL_READ/RTC_VL_CLR ioctls

Implement a way for userspace to query the status of the backup
battery, if supported by the hardware and driver.

The RTC_VL_* bits are a somewhat recent addition (3431ca4837bf, but
really only from b0efe0281234) to the uapi header,
so provide our own definition if the build host's header doesn't.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
sys-utils/hwclock-rtc.c
sys-utils/hwclock.c
sys-utils/hwclock.h