I have been a Windows kernel developer for many years. Now I start to develop Linux kernel modules.
To begin with, I installed
/usr/src/kernels/$(uname -r). However, after checking the installation folder, I am confused because there seem a lot of seemingly useless folders and files inside the directory. Many folders are empty except for two files:
Under Windows, to develop kernel device drivers, I just need an include folder containing all necessary header files, and an lib folder containing necessary libraries to link.
Under Linux, I can't understand why there are so many seemingly useless folders.