GCC编译器扩展支持

linux内核中的container_oflinux linux中container_of(ptr, type, member)宏的做用是传入结构体类型type的域member地址ptr,返回该结构体变量的首地址,定义以下:程序员 #define container_of(ptr, type, member) ({   \           const typeof( ((type *)0)->
相关文章
相关标签/搜索