Use Linux kernel list-general Linux technology-Linux programming and kernel information in your program. The following is a detailed description. In our daily programs, we often encounter writing linked lists. For c ++ programs, stl provides two templates: list and vector, which are easy to use. If you restrict the compiler to use only c, many people encapsulate related interfaces by themselves, which takes unnecessary time. The linux Kernel provides the object-oriented linked list: include/linux/list. h.
Reprinted Please retain original (msn and email: jinglexy at yahoo dot com dot cn), Suzhou Koda Technology Research Institute.
Here is the linked list program obtained from kernel 2.6.10 of montavista. There are some differences between kernel 2.6 and kernel 2.4. Only the usage is described here.
First, modify the source program and add the following program after # ifdef _ KERNEL _ and 3 include statements:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.