STRUCT RMI_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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