FreeBSD/sys/dev/vt/vt_core.c
/* Initialize locks/mem depended members. */
Initialize locks/mem depended members.
Initialize locks / mem depended members .
static void
vt_update_static(void *dummy)
{
	if (!vty_enabled(VTY_VT))
		return;
	if (main_vd->vd_driver != NULL)
		printf("VT(%s): %s %ux%u\n", main_vd->vd_driver->vd_name,
		    (main_vd->vd_flags & VDF_TEXTMODE) ? "text" : "resolution",
		    main_vd->vd_width, main_vd->vd_height);
	else
		printf("VT: init without driver.\n");
	mtx_init(&main_vd->vd_lock, "vtdev", NULL, MTX_DEF);
	cv_init(&main_vd->vd_winswitch, "vtwswt");
}
static void vt_update_static ( void * dummy ) { if ( ! vty_enabled ( VTY_VT ) ) return ; if ( main_vd -> vd_driver != NULL ) printf ( " \n " , main_vd -> vd_driver -> vd_name , ( main_vd -> vd_flags & VDF_TEXTMODE ) ? " " : " " , main_vd -> vd_width , main_vd -> vd_height ) ; else printf ( " \n " ) ; mtx_init ( & main_vd -> vd_lock , " " , NULL , MTX_DEF ) ; cv_init ( & main_vd -> vd_winswitch , " " ) ; }
Initialize locks/mem depended members.
Initialize locks / mem depended members .