[PATCH 0/4] Add GPIO chardev ioctl decoding

Kent Gibson warthog618 at gmail.com
Tue Dec 22 22:07:44 UTC 2020


This patch set implements decoding of the GPIO character device ioctls
first added in Linux v4.8, extended in v5.5 and v5.7, and the v2 ioctls
added in v5.10, and a minor update for v5.11.

The first patch adds a helper method used to print arrays of uint8,
as found in the GPIO API.
The second patch adds the decoding of the GPIO ioctls.
The third patch adds the decoding of the GPIO v2 ioctls.
The fourth patch adds decoding of the
GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME flag which is on track to be added
in Linux v5.11.

Kent Gibson (4):
  Add print_uint8_array_member() helper
  Add GPIO ioctl decoding
  Add GPIO uAPI v2 ioctl decoding
  Add GPIO uAPI realtime clock flag

 Makefile.am                   |   1 +
 configure.ac                  |   1 +
 defs.h                        |   4 +
 gpio_ioctl.c                  | 536 ++++++++++++++++++++++++++++++++++
 ioctl.c                       |   4 +
 util.c                        |  18 ++
 xlat/gpio_event_flags.in      |   3 +
 xlat/gpio_handle_flags.in     |   8 +
 xlat/gpio_line_flags.in       |   8 +
 xlat/gpio_v2_line_attr_ids.in |   5 +
 xlat/gpio_v2_line_flags.in    |  14 +
 11 files changed, 602 insertions(+)
 create mode 100644 gpio_ioctl.c
 create mode 100644 xlat/gpio_event_flags.in
 create mode 100644 xlat/gpio_handle_flags.in
 create mode 100644 xlat/gpio_line_flags.in
 create mode 100644 xlat/gpio_v2_line_attr_ids.in
 create mode 100644 xlat/gpio_v2_line_flags.in

-- 
2.29.2



More information about the Strace-devel mailing list