I refer an article KD-Project_2: kernel module sk_buff send packet and make a test.
I surf the internet and see a good article, and I back up a part of the article.
How does network device driver works
This article will introduce an well-known tool for detecting the memory leak,
Some people like to use empty infinite loop to implement the “waiting“.
It is a BAD design because this design will block your CPU !!!
I make a practice to explain this situation.