[include] fix comment for rt_container_of

This commit is contained in:
rewine 2022-05-24 00:16:27 +08:00 committed by guo
parent 42a136288d
commit a638a879fb
1 changed files with 2 additions and 2 deletions

View File

@ -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)))