Would it be possible to make the write an ioctl controlled by the user of the module, instead of something that happens every 5ms on a kthread?