结构体 | |
struct | tagDynloadParam |
类型定义 | |
typedef struct tagDynloadParam | DYNLOAD_PARAM_S |
枚举 | |
enum | LOAD_STRATEGY { ZIP , NOZIP } |
函数 | |
BOOL | LOS_DynMemPoolSet (VOID *memPool) |
Set the memory pool address used by dynload 更多... | |
VOID * | LOS_SoLoad (CHAR *elfFileName) |
Load a shared object file. 更多... | |
VOID * | LOS_ObjLoad (CHAR *elfFileName) |
Load a object file. 更多... | |
INT32 | LOS_ModuleUnload (VOID *handle) |
Unload a module. 更多... | |
VOID | LOS_LdDestroy (VOID) |
Destroy a dynamic loader. 更多... | |
VOID * | LOS_FindSymByName (VOID *handle, CHAR *name) |
Search for a symbol address. 更多... | |
INT32 | LOS_PathAdd (CHAR *path) |
Add a default path. 更多... | |
VOID | LOS_DynParamReg (DYNLOAD_PARAM_S *dynloadParam) |
Register the dynamic parameters. 更多... | |
typedef struct tagDynloadParam DYNLOAD_PARAM_S |
Define the structure of the parameters used for dynamic.
Information of specified parameters passed in during dynamic load.
enum LOAD_STRATEGY |
Define an enum type indicates load strategy.
Type of load strategy of dynamic load, ZIP means using zipped shared object, NOZIP means using normal shared object.
枚举值 | |
---|---|
ZIP | |
NOZIP |
在文件 los_ld_elflib.h 第 204 行定义.
BOOL LOS_DynMemPoolSet | ( | VOID * | memPool | ) |
Set the memory pool address used by dynload
memPool | [IN] the memory pool address. |
TRUE | Set successful. |
FLASE | Set failed. |
VOID LOS_DynParamReg | ( | DYNLOAD_PARAM_S * | dynloadParam | ) |
Register the dynamic parameters.
dynloadParam | [IN] dynamic load parameters to be registered. |
VOID * LOS_FindSymByName | ( | VOID * | handle, |
CHAR * | name | ||
) |
Search for a symbol address.
handle | [IN] Module handle. |
name | [IN] Name of the symbol to be searched for. |
NULL | The symbol address is not found. |
VOID* | Symbol address. |
VOID LOS_LdDestroy | ( | VOID | ) |
Destroy a dynamic loader.
None. |
None. |
INT32 LOS_ModuleUnload | ( | VOID * | handle | ) |
Unload a module.
handle | [IN] Module handle. |
#LOS_NOK | The module fails to be unloaded. |
#LOS_OK | The module is successfully unloaded. |
VOID * LOS_ObjLoad | ( | CHAR * | elfFileName | ) |
Load a object file.
elfFileName | [IN] Object file path. |
NULL | The object file fails to be loaded. |
VOID* | The object file is successfully loaded. |
Add a default path.
path | [IN] Path to be added to default paths. |
#LOS_NOK | The path is added unsuccessfully. |
#LOS_OK | The path is added successfully. |
VOID * LOS_SoLoad | ( | CHAR * | elfFileName | ) |
Load a shared object file.
elfFileName | [IN] Shared object file path. |
NULL | The shared object file fails to be loaded. |
VOID* | The shared object file is successfully loaded. |