關於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)
相關文章
相關標籤/搜索