Hi Denys,
On 12. 07. 23 16:28, Denys Vlasenko wrote:
On Tue, Jul 11, 2023 at 10:43 AM Andrej Picej wrote:
--- a/include/rtc_.h
+++ b/include/rtc_.h
@@ -22,6 +22,11 @@ int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC;
void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC;
time_t
On Tue, Jul 11, 2023 at 10:43 AM Andrej Picej wrote:
> --- a/include/rtc_.h
> +++ b/include/rtc_.h
> @@ -22,6 +22,11 @@ int rtc_xopen(const char **default_rtc, int flags)
> FAST_FUNC;
> void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC;
> time_t rtc_tm2time(struct tm *ptm, int utc) FAST_FUNC;
In kernel 5.16 special ioctls were introduced to get/set RTC parameters.
Add option to get/set parameters into busybox version of hwclock.
Implementation is similar to the one already used in linux-utils hwclock
tool.
Example of parameter get use:
$ hwclock -g 2
The RTC parameter 0x2 is set to