bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH util-linux] Support hwclock read and set operations for H


From: Zhaoming Luo
Subject: Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd
Date: Wed, 4 Dec 2024 11:04:02 +0800
User-agent: Mozilla Thunderbird

On 12/4/24 5:56 AM, Samuel Thibault wrote:
Zhaoming Luo, le mar. 03 déc. 2024 08:53:44 +0800, a ecrit:
On 12/3/24 6:48 AM, Samuel Thibault wrote:
Zhaoming Luo, le mar. 03 déc. 2024 06:42:07 +0800, a ecrit:
On 12/2/24 10:12 AM, Samuel Thibault wrote:
Please factorize these with the linux port, by putting them into a
shared file that is linked-in in both ports cases.
Do you mean having the following structure?
           /----- hurd-hwlock-rtc.c \
hwclock.c                           hwclock-rtc.c
           \----- linux-hwlock-rtc.c /

hwclock-rtc.c contains close_rtc, open_rtc, etc.
Yes.
I think another of supporting hwclock in Hurd is implementing more ioctl
calls (RTC_UIE_ON, RTC_PARAM_GET, etc) for rtc. The current compile errors
seem to be mainly due to the lack of RTC ioctl macros (i.e. RTC_UIE_ON,
etc).
That's also a solution, though more involved in terms of implementing
RPCs. Notably UIE_ON will have to be blocking.
I will try this solution first, because those RPCs will eventually be implemented in the future. There is no reason we don't finish them now :).
BTW, what do you mean by "blocking"?

--
Zhaoming Luo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]