cvs commit: src/sys/kern vfs_subr.c

Jung-uk Kim jkim at FreeBSD.org
Mon Sep 12 09:41:14 PDT 2005


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


More information about the cvs-src mailing list