list_head數據結構分析

一、list_head結構體的定義指針 struct list_head { struct list_head *next, *prev; };list_head結構包含兩個指針成員,一個用於指向前一個節點,next用於指向下一個節點。 二、LIST_HEAD_INIT宏定義code #define LIST_HEAD_INIT(name) { &(name), &(name)
相關文章
相關標籤/搜索