mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-24 00:21:05 +08:00
construct module symbol table
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1053 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -392,6 +392,13 @@ struct rt_module
|
||||
rt_list_t module_page; /* module using page */
|
||||
void* page_node_pool;
|
||||
|
||||
/* module symbol table */
|
||||
rt_uint32_t nsym;
|
||||
struct rt_module_symtab *symtab;
|
||||
|
||||
/* reference count */
|
||||
rt_uint32_t nref;
|
||||
|
||||
/* object in this module, module object is the last basic object type */
|
||||
struct rt_object_information module_object[RT_Object_Class_Module];
|
||||
};
|
||||
|
||||
+1
-1
@@ -308,8 +308,8 @@ rt_err_t rt_device_control(rt_device_t dev, rt_uint8_t cmd, void* arg);
|
||||
*/
|
||||
|
||||
rt_module_t rt_module_load(const rt_uint8_t* name, void* module_ptr);
|
||||
rt_module_t rt_module_load_from_file(const rt_uint8_t* name, const char* filename);
|
||||
rt_err_t rt_module_unload(rt_module_t module);
|
||||
rt_module_t rt_module_open(const char* filename);
|
||||
void *rt_module_malloc(rt_size_t size);
|
||||
void *rt_module_realloc(void *ptr, rt_size_t size);
|
||||
void rt_module_free(rt_module_t module, void *addr);
|
||||
|
||||
Reference in New Issue
Block a user