Detailed Description
Application Module is implemented as dynamic object loader, but it can handle the dependences relationship between application and dynamic library, moreover, it also can handle the kernel object destroy and memory release issue when application (abnormally) exit.
Function Documentation
This function will load a module from memory and create a thread for it
- Parameters:
-
name | the name of module, which shall be unique |
module_ptr | the memory address of module image |
- Returns:
- the module object
This function will unload a module from memory and release resources
- Parameters:
-
module | the module to be unloaded |
- Returns:
- the operation status, RT_EOK on OK; -RT_ERROR on error
This function will load a module from a file
- Parameters:
-
path | the full path of application module |
- Returns:
- the module object
This function will return self module object
- Returns:
- the self module object
This function will set current module object
- Returns:
- RT_EOK
This function will find the specified module.
- Parameters:
-
name | the name of module finding |
- Returns:
- the module
This function will set a hook function, which will be invoked when module be loaded to system.
- Parameters:
-
This function will set a hook function, which will be invoked when module be unloaded from system.
- Parameters:
-