大家好,linux内核链表结构的一个问题?请帮忙
xyge 2003-08-19 03:50:48 /**
* list_entry - get the struct for this entry
* @ptr: the &struct list_head pointer.
* @type: the type of the struct this is embedded in.
* @member: the name of the list_struct within the struct.
*/
#define list_entry(ptr, type, member) \
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
请问这个函数是什么意思,有什么功能?
请诸位分析一下(详细)