Skip to content

teach libgpiod to read multiple line events at once

Bartosz Golaszewski linux-gpio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7core: use gpiod_line_event_get_fd() in gpiod_line_event_read()lib/core.c+2 -50 replies
2/7core: provide functions for reading multiple line events at onceinclude/gpiod.h lib/core.c+75 -110 replies
3/7tests: event: extend test coverage for reading multiple line events at oncetests/tests-event.c+83 -07 replies
4/7bindings: cxx: provide a method for reading multiple line eventsbindings/cxx/gpiod.hpp bindings/cxx/line.cpp+44 -80 replies
5/7bindings: cxx: tests: add a test-case for reading multiple line eventsbindings/cxx/tests/tests-event.cpp+31 -00 replies
6/7bindings: python: add a method for reading multiple line eventsbindings/python/gpiodmodule.c+57 -00 replies
7/7bindings: python: tests: add a test-case for reading multiple line eventsbindings/python/tests/gpiod_py_test.py+22 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [libgpiod][PATCH 0/7] teach libgpiod to read multiple line events at once

From: Bartosz Golaszewski <[email protected]>

In v2 of my series adding the line status watch I introduced a regression that made it impossible to read more than one event at the same time. This is because I use libgpiod for testing and it doesn't allow to read more than one event from user-space.

This series adds this missing functionality so that we can test v3 and avoid this problem.

Bartosz Golaszewski (7):
core: use gpiod_line_event_get_fd() in gpiod_line_event_read()
core: provide functions for reading multiple line events at once
tests: event: extend test coverage for reading multiple line events at
once
bindings: cxx: provide a method for reading multiple line events
bindings: cxx: tests: add a test-case for reading multiple line events
bindings: python: add a method for reading multiple line events
bindings: python: tests: add a test-case for reading multiple line
events

 bindings/cxx/gpiod.hpp                 |  7 +++
 bindings/cxx/line.cpp                  | 45 +++++++++++---
 bindings/cxx/tests/tests-event.cpp     | 31 ++++++++++
 bindings/python/gpiodmodule.c          | 57 ++++++++++++++++++
 bindings/python/tests/gpiod_py_test.py | 22 +++++++
 include/gpiod.h                        | 25 ++++++++
 lib/core.c                             | 68 ++++++++++++++++-----
 tests/tests-event.c                    | 83 ++++++++++++++++++++++++++
 8 files changed, 314 insertions(+), 24 deletions(-)
Signature · 1 line
2.23.0