CModuleManager::~CModuleManager()
	{
		unload_all_modules();

		CFileHelper::delete_directory( m_implementation_directory_root.c_str() );

		CFileHelper::delete_directory( m_embedded_module_directory.c_str() );
	}
Example #2
0
void module_info_free(void *p) {
    struct pa_module_info *m = p;

    pa_assert(m);

    unload_all_modules(m);
    pa_xfree(m->name);
    pa_xfree(m);
}
Example #3
0
void kernel_shutdown()
{
	current_task->uid=0;
	shutting_down=1;
	/** Write the system-down stuffs */
	/* Unload modules, unmount stuff, sync stuff, kill all tasks*/
	kill_all_tasks();
	kernel_task->next = current_task;
	current_task->next=0;
	current_task->prev = kernel_task;
	sys_sync(PRINT_LEVEL);
	unmount_all();
#if CONFIG_MODULES
	unload_all_modules(1);
#endif
	kprintf("Everything under the sun is in tune, but the sun is eclipsed by the moon.\n");
}