linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Simplify event handling logic in input core
@ 2024-07-01  6:05 Dmitry Torokhov
  2024-07-01  6:05 ` [PATCH 1/4] Input: make sure input handlers define only one processing method Dmitry Torokhov
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Dmitry Torokhov @ 2024-07-01  6:05 UTC (permalink / raw)
  To: linux-input; +Cc: Benjamin Tissoires, Jeff LaBundy, linux-kernel

This series tries to untangle somewhat convoluted logic in the input
event processing in the input core by realizing that input handler can
be either a filter, or a handler that handles a single event at a time,
or a handler that can handle a sequence of events, but should not mix
the 3 behaviors in one handler. This allows us to reduce both filter
functionality and single-event handling functionality to batch handling
and have the main event handling path to only deal with
input_handle->events() batch method.

Dmitry Torokhov (4):
  Input: make sure input handlers define only one processing method
  Input: make events() method return number of events processed
  Input: simplify event handling logic
  Input: preallocate memory to hold event values

 drivers/input/evdev.c |   6 +-
 drivers/input/input.c | 210 +++++++++++++++++++++++++++---------------
 include/linux/input.h |   7 +-
 3 files changed, 146 insertions(+), 77 deletions(-)

-- 
2.45.2.803.g4e1b14247a-goog


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-07-01 17:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01  6:05 [PATCH 0/4] Simplify event handling logic in input core Dmitry Torokhov
2024-07-01  6:05 ` [PATCH 1/4] Input: make sure input handlers define only one processing method Dmitry Torokhov
2024-07-01  7:36   ` Benjamin Tissoires
2024-07-01 16:26     ` Dmitry Torokhov
2024-07-01  6:05 ` [PATCH 2/4] Input: make events() method return number of events processed Dmitry Torokhov
2024-07-01  7:37   ` Benjamin Tissoires
2024-07-01  6:05 ` [PATCH 3/4] Input: simplify event handling logic Dmitry Torokhov
2024-07-01  7:41   ` Benjamin Tissoires
2024-07-01 16:31     ` Dmitry Torokhov
2024-07-01 17:54       ` Benjamin Tissoires
2024-07-01  6:05 ` [PATCH 4/4] Input: preallocate memory to hold event values Dmitry Torokhov
2024-07-01  7:53   ` Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).