Linux内核链表基础
1、内核链表的定义在include/linux/list.hstruct list_head {struct list_head *next, *prev;};容易看出,Linux内核链表为双向链表。2、Linux链表与普通链表区别我们通常定义的链表是在链表节点中嵌入元素,比如struct MyList{int StudentID; /* 被嵌入的元素 */struct MyList *prev;struct MyList *next;}而LInux为了移...