diff --git a/include/rtthread.h b/include/rtthread.h index 43caf895ac..517d3dac42 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -314,12 +314,18 @@ void *rt_page_alloc(rt_size_t npages); void rt_page_free(void *addr, rt_size_t npages); #endif /* defined(RT_USING_SLAB) && defined(RT_USING_SLAB_AS_HEAP) */ +/** + * @ingroup Hook + * @{ + */ + #ifdef RT_USING_HOOK void rt_malloc_sethook(void (*hook)(void **ptr, rt_size_t size)); void rt_realloc_set_entry_hook(void (*hook)(void **ptr, rt_size_t size)); void rt_realloc_set_exit_hook(void (*hook)(void **ptr, rt_size_t size)); void rt_free_sethook(void (*hook)(void **ptr)); #endif /* RT_USING_HOOK */ +/**@}*/ #endif /* RT_USING_HEAP */ diff --git a/src/kservice.c b/src/kservice.c index e61bae296a..915850e89d 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -594,7 +594,7 @@ static void (*rt_realloc_exit_hook)(void **ptr, rt_size_t size); static void (*rt_free_hook)(void **ptr); /** - * @addtogroup Hook + * @ingroup Hook * @{ */