[Stormdos-develop] for your consideration, executables, dlls etc.
Status: Planning
Brought to you by:
exhu
From: Juras <yb...@tu...> - 2004-04-16 13:48:32
|
Hello stormdos-develop, EXECUTABLES AND DLLs HANDLING SKETCH: [THREAD] fs_current_dir next_sibling_thread (the threads of one app are called "siblings" here) app_handle ("parent" application) [APPLICATION] fs_opened_files_list page_directory_object threads_count main_thread module_handle should we need heap_support here? [MODULE] (a lot of modules for every application) image_handle dll_modules (MODULEs used as DLLs and needed by this module i.e. dependencies) [IMAGE] (usually only one, at least for system DLLs) reference_counter (how many MODULES use this image) file_path image_filename template_ptr (if it's cached then it won't be loaded from a file but from memory instead) dlls_needed (names of DLLs) ------------------ Execution process: #find allocated image with that name: if no then load and register, enumerate needed DLLs; else increment image.reference_counter #allocate module - load image - call #allocate module(module.image_handle.next_dll) ------------------- Shutdown process: #freemodule(module) decrement image reference free memory used by module using specified PAGEDIR call #freemodule(next_dll) -- Best regards, Juras mailto:yb...@tu... |