STRUCT RMI_FUNCTION(9)
πΈ 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 π¦
- Kernel file
./drivers/input/rmi4/rmi_bus.h struct rmi_function_handler(9)rmi_reset(9)rmi_read(9)rmi_read_block(9)rmi_write(9)rmi_write_block(9)
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
- 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