this repo contains a tutorial for building a linux driver: https://www.youtube.com/watch?v=DZrb9oSEzlU&list=PLCGpd0Do5-I3b5TtyqeF1UdyD4C-S-dMa&ab_channel=Johannes4GNU_Linux
base on this repo: https://github.com/Johannes4Linux/Linux_Driver_Tutorial_legacy