Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jul 2014 14:37:59 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269193 - head/sys/dev/vt
Message-ID:  <201407281437.s6SEbxnc094557@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Mon Jul 28 14:37:59 2014
New Revision: 269193
URL: http://svnweb.freebsd.org/changeset/base/269193

Log:
  Update comments.
  
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/vt/vt_core.c

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Mon Jul 28 14:35:21 2014	(r269192)
+++ head/sys/dev/vt/vt_core.c	Mon Jul 28 14:37:59 2014	(r269193)
@@ -2111,6 +2111,7 @@ vt_allocate(struct vt_driver *drv, void 
 	vd->vd_driver->vd_init(vd);
 	VT_UNLOCK(vd);
 
+	/* Update windows sizes and initialize last items. */
 	vt_upgrade(vd);
 
 #ifdef DEV_SPLASH
@@ -2119,10 +2120,16 @@ vt_allocate(struct vt_driver *drv, void 
 #endif
 
 	if (vd->vd_flags & VDF_ASYNC) {
+		/* Allow to put chars now. */
 		terminal_mute(vd->vd_curwindow->vw_terminal, 0);
+		/* Rerun timer for screen updates. */
 		callout_schedule(&vd->vd_timer, hz / VT_TIMERFREQ);
 	}
 
+	/*
+	 * Register as console. If it already registered, cnadd() will ignore
+	 * it.
+	 */
 	termcn_cnregister(vd->vd_windows[VT_CONSWINDOW]->vw_terminal);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407281437.s6SEbxnc094557>