STRUCT RMI_DEVICE(9)
π struct rmi_device(9) π
okay so bestie, welcome to the kernel API manual, section 9 β this one is literally about struct rmi_device, which represents an RMI4 sensor device on the RMI bus. yes, that whole sentence is the vibe. it's giving "small struct, big responsibilities" and i'm obsessed π«Ά
β¨ NAME β¨
struct rmi_device β the struct that represents an RMI4 sensor device on the RMI bus. that's it, that's the whole name section, she's concise and she ate π
πΈ SYNOPSIS πΈ
struct rmi_device {
struct device dev;
int number;
struct rmi_driver *driver;
struct rmi_transport_dev *xport;
};
look at her. four members. no cap, she's not doing too much, she's just existing on the bus and living her main character life β¨
π Members π
okay so let's meet the members one by one, they all have a job and they all do it well:
devβ the device created for the RMI bus. that's her whole identity on the bus fr fr π¦numberβ a unique number for the device on the bus. yes, unique. don't be out here duplicating numbers, that's not the vibe πdriverβ a pointer to the associated driver. her plus her driver, iconic duo, no notes πxportβ a pointer to the transport interface. the way she just has a transport interface, lowkey highkey essential π
π SEE ALSO π
if you're the type of person who reads the whole group chat before replying (respect), here's everything else you should look at β and yes, i'm listing every single one because we don't skip references in this house:
- Kernel file
./include/linux/rmi.h struct rmi_2d_axis_alignment(9)struct rmi_gpio_data(9)struct rmi_f01_power_management(9)struct rmi_device_platform_data_spi(9)struct rmi_device_platform_data(9)struct rmi_function_descriptor(9)struct rmi_transport_dev(9)struct rmi_transport_ops(9)struct rmi_driver(9)
go read them bestie, they're all right there and they all slay in their own way β
ngl, this page is short and sweet β so like, don't go making up extra fields for this struct, okay? what's listed is what's real. iykyk π
and that's the page!! π this gem lives over at ./include/linux, stamped October 2026, and it's part of the Kernel API Manual β so like, she's official, she's dated, she's documented, and she's absolutely thriving. mwah ππ
π¦ 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