diff options
| author | rewine <[email protected]> | 2022-05-24 00:16:27 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2022-05-25 10:04:55 +0800 |
| commit | a638a879fb83a28c1c43125c6eab4b30ed64940f (patch) | |
| tree | 69c225c22375cf5dca52c773b8cc265b7cf3ca8b /include | |
| parent | 42a136288dc7dab4bba688f2ffccbc955090a6bb (diff) | |
[include] fix comment for rt_container_of
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtservice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtservice.h b/include/rtservice.h index d0bad85de1..1524af10f7 100644 --- a/include/rtservice.h +++ b/include/rtservice.h @@ -27,8 +27,8 @@ extern "C" { /**@{*/ /** - * rt_container_of - return the member address of ptr, if the type of ptr is the - * struct type. + * rt_container_of - return the start address of struct type, while ptr is the + * member of struct type. */ #define rt_container_of(ptr, type, member) \ ((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->member))) |
