doc: reference: add a page for iterable sections
Group together the iterable section functions and add a corresponding documentation page. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
ae3b792016
commit
94711f1ced
4 changed files with 31 additions and 0 deletions
|
@ -38,6 +38,12 @@
|
|||
#endif
|
||||
|
||||
#ifdef _LINKER
|
||||
|
||||
/**
|
||||
* @addtogroup iterable_section_apis
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define Z_LINK_ITERABLE(struct_type) \
|
||||
_CONCAT(_##struct_type, _list_start) = .; \
|
||||
KEEP(*(SORT_BY_NAME(._##struct_type.static.*))); \
|
||||
|
@ -141,6 +147,10 @@
|
|||
Z_LINK_ITERABLE_GC_ALLOWED(struct_type); \
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/ /* end of struct_section_apis */
|
||||
|
||||
/*
|
||||
* generate a symbol to mark the start of the objects array for
|
||||
* the specified object and level, then link all of those objects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue