list_entry in Linux

后端 未结 3 1771
野性不改
野性不改 2020-12-08 04:57
user/include/linux/list.h

this declaration:

#define list_entry(ptr, type, member) \\
((type *)((char *)(ptr) – (unsigned long)(&         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 05:44

    An explanation of this you find here: Section How Does This Work?

提交回复
热议问题