示例#1
0
/*
 * Shutdown sequence. Opposite to boot().
 */
static
void
shutdown(void)
{

	kprintf("Shutting down.\n");
	
	vfs_clearbootfs();
	vfs_clearcurdir();
	vfs_unmountall();

#if OPT_A3    

        vmstats_print();

#endif


	splhigh();
#if OPT_A3   

    vm_shutdown();
    shutdownSwapOps();

#endif
	scheduler_shutdown();
	thread_shutdown();
}
示例#2
0
/*
 * Shutdown sequence. Opposite to boot().
 */
static
void
shutdown(void)
{

	kprintf("Shutting down.\n");
	
	vfs_clearbootfs();
	vfs_clearcurdir();
	vfs_unmountall();

	thread_shutdown();

	splhigh();
}
示例#3
0
文件: main.c 项目: HeliWang/cs350OS
/*
 * Shutdown sequence. Opposite to boot().
 */
static
void
shutdown(void)
{
	#if OPT_A3
	vmstats_print();
	#endif

	kprintf("Shutting down.\n");

	vfs_clearbootfs();
	vfs_clearcurdir();
	vfs_unmountall();

	thread_shutdown();

	splhigh();
}
示例#4
0
文件: main.c 项目: jessZhAnG/OS
/*
 * Shutdown sequence. Opposite to boot().
 */
static
void
shutdown(void)
{

	kprintf("Shutting down.\n");
        vmstats_print();
        process_shutdown();
        swap_shutdown();

	vfs_clearbootfs();
	vfs_clearcurdir();
	vfs_unmountall();

	splhigh();

	scheduler_shutdown();
	thread_shutdown();
}