关于Container_of的思考

1. 结构体 Container_of 的初衷为了从子结构体指针获取父结构体的指针,web typdef stuct Struct_a{ int a_num; } Struct_a; typdef stuct Struct_b{ Struct_a a; int b_num; } Struct_b; C 版:svg #define offsetof(TYPE,MEMBER)
相关文章
相关标签/搜索