- 博客(1)
- 资源 (8)
- 收藏
- 关注
原创 container_of解析
#define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );})kernel中有很多地方会用到这个宏,这个宏的作用是
2016-06-14 14:22:53
382
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅