|
When the core first loads a module into memory, it will check for an initialization routine listed in the module header. If it finds one, then it will be invoked using the context described below to give the module an opportunity to initialize.
When it comes time for CD Shell to exit, either in the process of executing a boot command or otherwise, it gives all modules a chance to free any resources they may have used so that the system can proceed to boot cleanly, as if CD Shell had never been run. The core checks for a cleanup routine listed in the module header, and if it finds one it will be invoked using the following context.
|