Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2005 12:40:49 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@FreeBSD.org
Cc:        cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_subr.c
Message-ID:  <200509121240.51775.jkim@FreeBSD.org>
In-Reply-To: <200509121531.j8CFVSxj055317@repoman.freebsd.org>
References:  <200509121531.j8CFVSxj055317@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 12 September 2005 11:31 am, Jung-uk Kim wrote:
> jkim        2005-09-12 15:31:28 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             vfs_subr.c
>   Log:
>   use monotonic `time_uptime' instead of `time_second'
>
>   Approved by:    anholt (mentor)
>   Discussed on:   arch
>
>   Revision  Changes    Path
>   1.645     +4 -4      src/sys/kern/vfs_subr.c

Please make sure to use `time_uptime' if you need monotonic timestamp.  
Especially many network stacks seem to make sequence IDs and 
timestamps to expire from `time_second' instead of time_uptime.  
time_second is not guaranteed to be monotonic!  time_uptime is.

http://docs.freebsd.org/cgi/mid.cgi?8153.1126340565
http://docs.freebsd.org/cgi/mid.cgi?20050909214808.GA6021

I was almost tempted to do `sed -i -e 's/time_second/time_uptime' 
net*' (with few exceptions) but I wasn't sure how many standards 
really demand time_second in their actual packets/cells. :-(

Thanks,

Jung-uk Kim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509121240.51775.jkim>