STRUCT GRTS_STATE(9)
π¦ 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β aboolthat 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 astruct iio_channel. slay.iio_cbβ the iio_callback buffer for the data. astruct 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 astruct touchscreen_properties. it's giving supporting cast but essential.ch_mapβ map of channels that are defined for the touchscreen. it's au8array sizedGRTS_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms