提交 a638a879 编写于 作者: R rewine 提交者: guo

[include] fix comment for rt_container_of

上级 42a13628
...@@ -27,8 +27,8 @@ extern "C" { ...@@ -27,8 +27,8 @@ extern "C" {
/**@{*/ /**@{*/
/** /**
* rt_container_of - return the member address of ptr, if the type of ptr is the * rt_container_of - return the start address of struct type, while ptr is the
* struct type. * member of struct type.
*/ */
#define rt_container_of(ptr, type, member) \ #define rt_container_of(ptr, type, member) \
((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->member))) ((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->member)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册