From: Jeff Brown Date: Wed, 13 Apr 2011 06:29:38 +0000 (-0700) Subject: Input: evdev - indicate buffer overrun with SYN_DROPPED X-Git-Tag: v2.6.39-rc4~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb0f14e31b6101a0cc69a333b43541044f9b0a6;p=pandora-kernel.git Input: evdev - indicate buffer overrun with SYN_DROPPED Add a new EV_SYN code, SYN_DROPPED, to inform the client when input events have been dropped from the evdev input buffer due to a buffer overrun. The client should use this event as a hint to reset its state or ignore all following events until the next packet begins. Signed-off-by: Jeff Brown [dtor@mail.ru: Implement Henrik's suggestion and drop old events in case of overflow.] Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed