On Wed, Oct 27, 2010 at 12:09:58PM -0500, Bill Gatliff wrote: > On a buffer overflow, the head and tail pointers collide. > This makes the buffer suddenly look empty, rather than > full, which may confuse applications. > > This patch moves the tail pointer up one event on a buffer > overflow, which "consumes" the oldest event in the buffer > to make room for the incoming event. Thus, although data > is lost due to the overflow (which is unavoidable), the > data that remains is both recent and still time-ordered. > It does not really matter... You are losing part of the hardware state regardless so the packet is invalid anyway. What would probably make more sense is to ignore all events up until next packet boundary (EV_SYN/SYN_REPORT) so userspace would get most up-to-date _full_ packet (when it catches up). Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html