摘要: container_of在Linux内核中是一个常见的宏,用于从包含在某个结构体中的指针获得结构体本身的指针。通俗讲就是通过结构体变量中的某个成员获得整个结构体变量的首地址。 container_of在源码中的定义如下:#define container_of(ptr, type, member)... 阅读全文
posted @ 2015-05-28 15:49 SuMingYuan 阅读(198) 评论(0) 推荐(0)