STRUCT GRTS_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct grts_state(9) πŸ¦‹

okay bestie, so this is from the Kernel API Manual and it's literally the page for struct grts_state β€” the generic resistive touch screen information struct. yes, that's the whole vibe: it's the little info bundle that holds everything the resistive touchscreen driver needs to know about itself. icon behavior honestly. ✨


🌸 NAME 🌸

struct grts_state β€” the generic resistive touch screen information struct πŸ’…


✨ SYNOPSIS ✨

struct grts_state {
    u32 x_plate_ohms;
    u32 pressure_min;
    bool pressure;
    struct iio_channel              *iio_chans;
    struct iio_cb_buffer            *iio_cb;
    struct input_dev                *input;
    struct touchscreen_properties   prop;
    u8 ch_map[GRTS_CH_MAX];
 };

πŸŽ€ Members πŸŽ€

okay so every single field, no skipping, let's go 🫢

  • x_plate_ohms β€” the resistance of the X plate, fr fr. that's the number, that's what it is.
  • pressure_min β€” a number representing the minimum for the pressure. lowkey the floor value for pressure readings.
  • pressure β€” a bool that answers the question: are we getting pressure info or not? πŸ‘€ that's it, that's the whole field.
  • iio_chans β€” the list of channels acquired. points at a struct iio_channel. slay.
  • iio_cb β€” the iio_callback buffer for the data. a struct iio_cb_buffer *, holding onto the callback buffer vibes.
  • input β€” the input device structure that we register. struct input_dev *, main character energy for real.
  • prop β€” the touchscreen properties struct, aka a struct touchscreen_properties. it's giving supporting cast but essential.
  • ch_map β€” map of channels that are defined for the touchscreen. it's a u8 array sized GRTS_CH_MAX. periodt.

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/input/touchscreen/resistive-adc-touch.c β€” go read the source bestie, that's where the lore lives πŸ“–

okay that's the whole page, no cap, every member accounted for πŸ’– and for the cute sign-off: this one lives under ./drivers/input/touchscreen and it's dated October 2026 β€” so mark your calendars, the touchscreen lore is timestamped πŸŽ€βœ¨ no notes, 10/10, bye πŸ¦‹

πŸ“¦ where this page comes from