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: Samuel Thibault
Subject: Re: [RFC PATCH util-linux] Support hwclock read and set operations for Hurd
Date: Tue, 3 Dec 2024 22:56:21 +0100

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.

Samuel



reply via email to

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