1
0
Fork 0
forked from nuttx/nuttx-update

modlib:move modlib_findsection to common headfile

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2024-07-18 16:36:39 +08:00 committed by Xiang Xiao
parent a3f3918198
commit 434442d707
2 changed files with 19 additions and 19 deletions

View file

@ -455,6 +455,25 @@ int modlib_undepend(FAR struct module_s *importer);
int modlib_read(FAR struct mod_loadinfo_s *loadinfo, FAR uint8_t *buffer,
size_t readsize, off_t offset);
/****************************************************************************
* Name: modlib_findsection
*
* Description:
* A section by its name.
*
* Input Parameters:
* loadinfo - Load state information
* sectname - Name of the section to find
*
* Returned Value:
* On success, the index to the section is returned; A negated errno value
* is returned on failure.
*
****************************************************************************/
int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo,
FAR const char *sectname);
/****************************************************************************
* Name: modlib_registry_lock
*

View file

@ -194,25 +194,6 @@ int modlib_loadhdrs(FAR struct mod_loadinfo_s *loadinfo);
int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
FAR const Elf_Shdr *shdr);
/****************************************************************************
* Name: modlib_findsection
*
* Description:
* A section by its name.
*
* Input Parameters:
* loadinfo - Load state information
* sectname - Name of the section to find
*
* Returned Value:
* On success, the index to the section is returned; A negated errno value
* is returned on failure.
*
****************************************************************************/
int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo,
FAR const char *sectname);
/****************************************************************************
* Name: modlib_allocbuffer
*