Writing Your First Kernel Module (2019)
scottc130.medium.com
scottc130.medium.com
Don't get me wrong I absolutely root for people's efforts for popularising kernel dev, just stunned how HN works sometimes.
When I was first learning to write kernel drivers, I had LDD open on one screen and the kernel source code open on the other. You can usually look for examples in the source that will help you figure out the “modern” ways of doing things. LDD is indispensable for giving you a solid footing so that you’re not wading into the Linux kernel totally unequipped.
I just found it when I put it into search. Looks more up to date then LDD though I cannot talk about the quality.
The internet is turning into a sea of wrongly chosen media. Youtube videos are used when a small list of command lines would be enough and images are used when text would be much better.
This is even more important in the kernel as it changes the set of symbols available to your module.
The bottom is where the initialization happens. The further you move towards the top of the file the more specific the code becomes (register bashing and magic hardware specific values)