STRUCT RMI_FUNCTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct rmi_function(9) 🌸

okay so bestie, welcome to section 9 of the Kernel API Manual β€” this one's called struct rmi_function and it's genuinely one of my faves to explain.


πŸ’– NAME πŸ’–

struct rmi_function β€” this is the thing that represents the implementation of an RMI4 function for a particular device. like, basically? it's the driver for that RMI4 function. that's the whole vibe. 🫢


✨ SYNOPSIS ✨

struct rmi_function {
    struct rmi_function_descriptor fd;
    struct rmi_device *rmi_dev;
    struct device dev;
    struct list_head node;
    unsigned int num_of_irqs;
    int irq[RMI_FN_MAX_IRQS];
    unsigned int irq_pos;
    unsigned long irq_mask[];
 };

πŸŽ€ Members πŸŽ€

bestie. let's go through the squad one by one πŸ‘‘

  • fd β€” the function descriptor of the RMI function πŸ’…
  • rmi_dev β€” a pointer to the RMI device that's associated with this function container πŸ¦‹
  • dev β€” the device associated with this particular function, like, this specific one ✨
  • node β€” the entry in the device's list of functions. very "i'm on the list, i'm on the list" of it πŸŽ€
  • num_of_irqs β€” how many irqs this function needs 🌸
  • irq_pos β€” where this function sits in the irq bitfield πŸ“
  • irq_mask β€” for convenience!! can be used to mask IRQ bits off during ATTN interrupt handling πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

ngl bestie, go read those too β€” that's the assignment πŸ’œ

and that's the whole page!! ✨ mwah πŸ’‹ β€” this came out of ./drivers/input/rmi4, dated October 2026, and it's struct rmi_function(9) signing off. slay, bye πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from