cvs commit: src/sys/kern vfs_subr.c

Jung-uk Kim jkim at
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.

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. :-(


Jung-uk Kim

More information about the cvs-src mailing list