linux內核學習筆記之——list_for_each_entry

在Linux內核源碼中,常常要對鏈表進行操做,其中一個很重要的宏是list_for_each_entry: 意思大致以下: 假設只有兩個結點,則第一個member表明head, list_for_each_entry的做用就是循環遍歷每個pos中的member子項。 圖1: pos:                                                          
相關文章
相關標籤/搜索