bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH Mach] kern: Add a mach host operation which returns elapsed t


From: Samuel Thibault
Subject: Re: [PATCH Mach] kern: Add a mach host operation which returns elapsed time since bootup
Date: Tue, 31 Dec 2024 00:33:24 +0100

Zhaoming Luo, le mar. 31 déc. 2024 07:24:08 +0800, a ecrit:
> On 12/29/24 5:21 PM, Samuel Thibault wrote:
> > Zhaoming Luo, le dim. 29 déc. 2024 12:44:27 +0800, a ecrit:
> > > On 12/29/24 9:28 AM, Samuel Thibault wrote:
> > > > Hello,
> > > > 
> > > > Zhaoming Luo, le mar. 24 déc. 2024 09:57:51 +0800, a ecrit:
> > > > > Add host_get_uptime64() mach interface operation. It can be used to 
> > > > > get
> > > > > the time passed since the boot up.
> > > > > 
> > > > > * doc/mach.texi: Add the documentation for the operation
> > > > > * include/mach/mach_host.defs: Add the interface
> > > > > * include/mach/time_value.h: Extend the mappable time variable
> > > > > * kern/mach_clock.c: Operation implementation
> > > > > * kern/mach_clock.h: Add a new variable for storing uptime
> > > > 
> > > > Applied, thanks!
> > > > 
> > > > The glibc part is now needed in clock_gettime
> > > > 
> > > Do you mean adding CLOCK_MONOTONIC case in clock_gettime()?
> > 
> > Yes.
> 
> Does it worth to expose the CLOCK_MONOTONIC part in /dev/time device?

It already is through extending mapped_time_value, isn't it?

Samuel



reply via email to

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