一文讀懂list_head相關

1.list_entry的做用 struct list_head {   struct list_head *next, *prev; }; 沒有數據區怎麼使用,更多的時候是嵌入到其餘結構體中使用。node struct file_node{   char c;   struct list_head node; }; 當咱們知道 list_head的地址時,就能夠經過宏 list_entry獲取父
相關文章
相關標籤/搜索