kernels/linux-2.4.0/drivers/video/fbgen.c
/*
     *  Switch to a different virtual console
     */
Switch to a different virtual console
Switch to a different virtual console
int fbgen_switch(int con, struct fb_info *info)
{
    struct fb_info_gen *info2 = (struct fb_info_gen *)info;
    struct fbgen_hwswitch *fbhw = info2->fbhw;
    if (fb_display[currcon].cmap.len)
	fb_get_cmap(&fb_display[currcon].cmap, 1, fbhw->getcolreg,
		    &info2->info);
    fbgen_do_set_var(&fb_display[con].var, 1, info2);
    currcon = con;
    fbgen_install_cmap(con, info2);
    return 0;
}
int fbgen_switch ( int con , struct fb_info * info ) { struct fb_info_gen * info2 = ( struct fb_info_gen * ) info ; struct fbgen_hwswitch * fbhw = info2 -> fbhw ; if ( fb_display [ currcon ] . cmap . len ) fb_get_cmap ( & fb_display [ currcon ] . cmap , 1 , fbhw -> getcolreg , & info2 -> info ) ; fbgen_do_set_var ( & fb_display [ con ] . var , 1 , info2 ) ; currcon = con ; fbgen_install_cmap ( con , info2 ) ; return 0 ; }
Switch to a different virtual console
Switch to a different virtual console
/* Do we have to save the colormap ? */ /* Install new colormap */