摘要: https://blog.csdn.net/u010217055/article/details/128957497 https://www.cnblogs.com/god-of-death/p/8017414.html 阅读全文
posted @ 2023-02-27 13:52 墨尔基阿德斯 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 求指针ptr所在的结构体实例的首地址, #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ const typeof( ((type * 阅读全文
posted @ 2023-02-27 11:47 墨尔基阿德斯 阅读(154) 评论(0) 推荐(0) 编辑