Re: [patch 00/43] ktimer reworked



On Nov 30, 2005, at 22:32, Roman Zippel wrote:
On Thu, 1 Dec 2005, Thomas Gleixner wrote:
but what we'd like to achieve as an end-result is the clear separation of 'timer' vs. 'timeout' APIs. Our proposed end result would be to have 'struct ktimer' for timers, and 'struct ktimeout' for timeouts.

Sorry, but calling it "ktimeout" would be completely wrong.

"timeout" is a rather imprecise term, which can have different meanings depending on the context, e.g. any timer usually has a "timeout value", but what is meant here is a "timeout timer". So basically this is supposed to be about "timer" vs "timeout timer".
[snip lengthy discussion]

If I recall correctly, this whole naming mess has been discussed to death before, with the result that almost everybody but Roman thought the names were perfectly clear such that a timer is _expected_ to expire and a timeout is not, therefore timers should be optimized for add=>run=>expire and timeouts optimized for add=>run=>remove.


Cheers,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/E/U d- s++: a18 C++++>$ ULBX*++++(+++)>$ P++++(+++)>$ L++++ (+++)>$ !E- W+++(++) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+ PGP + t+(+++) 5 X R? !tv-(--) b++++(++) DI+(++) D+++ G e>++++$ h*(+)>++$ r %(--) !y?-(--)
------END GEEK CODE BLOCK------




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Relevant Pages

  • Re: select/poll/usleep precision on FreeBSD vs Linux vs OSX
    ... Bakul Shah confirmed that Linux now reprograms the timer. ... Timeout granularity is still ... scheduler ticks. ...
    (freebsd-arch)
  • Re: CreateTimerQueueTimer fails unexpectedly
    ... I send a command to a device and the device does not respond, ... So, in case of timeout I don't call shutdown, ... but a key point is that when the timer runs, ... written to deal with socket disconnect. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Serialport termios & timeout
    ... for VTIME and VMIN I can do it, ... If VTIME and VMIN are both greater than 0 the timer is ... and will timeout if there is the ...
    (comp.os.linux.development.apps)
  • Re: [update] Re: [RFC][PATCH] PM: Avoid losing wakeup events during suspend
    ... The kernel will still have to specify some small initial timeout. ... events_in_progress and the timer might simply decrement it. ... If a wakeup event it's just detected by one piece of code and is going to ... the timer expires. ...
    (Linux-Kernel)
  • Re: CreateTimerQueueTimer fails unexpectedly
    ... you should use stateless processing for both your IO completion and timeout logic. ... IOCP + timer queues is a good choice, but a key point is that when the timer runs, calling shutdown with SD_BOTH will abort any pending IO and trigger the cleanup logic you have already written to deal with socket disconnect. ... determine if a command has been responded in the desired time period. ...
    (microsoft.public.win32.programmer.kernel)