links:
http://derekmolloy.ie/writing-a-linux-kernel-module-part-1-introduction/#prettyPhoto
https://github.com/derekmolloy/exploringBB/tree/master/extras/kernel
A simple block driver:
https://lwn.net/Articles/58719/
Simple block driver example
https://lwn.net/Articles/58720/
#Porting device drivers to the 2.6 kernel
https://lwn.net/Articles/driver-porting/
other links:
https://embetronicx.com/tutorials/linux/device-drivers/linux-device-drivers-tutorial-kernel-thread/
https://www.linuxquestions.org/linux/articles/Technical/Linux_Kernel_Thread
https://sysplay.in/blog/linux-kernel-internals/2015/04/kernel-threads/
https://duckduckgo.com/?q=linux+kernel+module+with+threads&t=ffab&ia=web
https://tuxthink.blogspot.com/2011/02/kernel-thread-creation-1.html
http://www.cs.fsu.edu/~cop4610t/lectures/project2/kthreads/kthreads.pdf
https://puddleofcode.com/story/the-beginners-guide-to-linux-kernel-module-raspbery-pi-and-led-matrix
https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/kernel_modules/kthreads.c