I am trying to write a simple Linux kernel module that uses an existing I2C module. The existing i2c module requires an irq number (passed in through a i2c_board_info
struct), which the i2c module then passes as the first parameter to request_threaded_irq(...)
.
I want that the irq I pass in is being triggered periodically (say, every 100ms), and I thought a tasklet was the proper way to go, but I don't see any way of translating a tasklet to an irq number that can be passed to request_threaded_irq()
. Am I going about this the wrong way? Is there even a way to do what I'm trying?