This is just a basic linux device driver which explains about the kernel timer in linux device driver.
Please refer this URL for the complete tutorial of this example source code. https://embetronicx.com/tutorials/linux/device-drivers/using-kernel-timer-in-linux-device-driver/