源码路径:include/linux/list.h
struct list_head {
struct list_head *next, *prev;
};
1、定义并初始化
LIST_HEAD(A);
2、添加一个节点到表头之后(即表头的next)
list_add(struct list_head *new, struct list_head *head)
源码路径:include/linux/list.h
struct list_head {
struct list_head *next, *prev;
};
1、定义并初始化
LIST_HEAD(A);
2、添加一个节点到表头之后(即表头的next)
list_add(struct list_head *new, struct list_head *head)