转:一文读懂list_head相关
1.list_entry的作用struct list_head { struct list_head *next, *prev;};没有数据区怎么使用,更多的时候是嵌入到其他结构体中使用。struct file_node{ char c; struct list_head node;};当我们知道 list_head的地址时,就可以通过宏 list_entry获取父结构的地...