How to create a device in /dev automatically
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.
In C++, smart pointers, unique_ptr and shared_ptr, are very common.
If you develop on Android, you may have seen strong pointer(sp), it is also a smart pointer.
Some notes about those pointers.
– strong pointer in Android, can be saw as shared_ptr.
– shared_ptr has a counter to record who is using this pointer in order to prevent dangerous pointer managements.