Continue to study the most basic and important concept of RT thread: kernel object The kernel object and management method are just like the school library or bus station, which need to be classified and managed Books need bookshelves, object management, use: kernel object container
Objects are like a book. How to find them? Find the member property [name]: name in the comparison object.
The length of object name can be modified. If it is changed too long, more resources (RAM and ROM) are needed. If it is changed too short, it is not conducive to reading and analysis, so as to ensure the uniqueness of the name. The modification method is as follows:
The name of the object, which can be used to find the object. Search by name.
Just like each bus stop, there needs to be a total departure point [station], and the kernel object uses [kernel object container]
Bus routes, each route has more than one station, but there are more than one route. Here, we use type to identify the route and link the stations on the route
Kernel object management method: multiple different types of linked lists are organized
Object, organized by linked list, is used to search, add, delete and other operations.
Find the name property of the object to be used.
Complex structures and algorithms are all composed of simple modules (objects).
Link to the original text:https://club.rt-thread.org/as…