Lines Matching refs:module_ptr
454 rt_uint8_t *module_ptr = RT_NULL; in dlmodule_load() local
466 module_ptr = (uint8_t*) rt_malloc (length); in dlmodule_load()
467 if (!module_ptr) goto __exit; in dlmodule_load()
469 if (read(fd, module_ptr, length) != length) in dlmodule_load()
482 if (!module_ptr) goto __exit; in dlmodule_load()
509 ret = dlmodule_load_relocated_object(module, module_ptr); in dlmodule_load()
513 ret = dlmodule_load_shared_object(module, module_ptr); in dlmodule_load()
525 rt_free(module_ptr); in dlmodule_load()
552 if (module_ptr) rt_free(module_ptr); in dlmodule_load()
612 rt_uint8_t *module_ptr = RT_NULL; in dlmodule_load_custom() local
619 module_ptr = ops->load(filename); in dlmodule_load_custom()
632 module_ptr = (uint8_t*) rt_malloc (length); in dlmodule_load_custom()
633 if (!module_ptr) goto __exit; in dlmodule_load_custom()
635 if (read(fd, module_ptr, length) != length) in dlmodule_load_custom()
649 if (!module_ptr) goto __exit; in dlmodule_load_custom()
676 ret = dlmodule_load_relocated_object(module, module_ptr); in dlmodule_load_custom()
680 ret = dlmodule_load_shared_object(module, module_ptr); in dlmodule_load_custom()
694 ops->unload(module_ptr); in dlmodule_load_custom()
698 rt_free(module_ptr); in dlmodule_load_custom()
726 if (module_ptr) in dlmodule_load_custom()
730 ops->unload(module_ptr); in dlmodule_load_custom()
734 rt_free(module_ptr); in dlmodule_load_custom()