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