svn commit: r325724 - head/sys/dev/vt

Hans Petter Selasky hselasky at FreeBSD.org
Sat Nov 11 20:12:50 UTC 2017


Author: hselasky
Date: Sat Nov 11 20:12:48 2017
New Revision: 325724
URL: https://svnweb.freebsd.org/changeset/base/325724

Log:
  Implement missing KDGETMODE IOCTL in VT.
  
  Obtained from:	Johannes Lundberg <yohanesu75 at gmail.com>
  Sponsored by:	Mellanox Technologies
  MFC after:	1 week

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

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Sat Nov 11 19:18:47 2017	(r325723)
+++ head/sys/dev/vt/vt_core.c	Sat Nov 11 20:12:48 2017	(r325724)
@@ -2161,6 +2161,10 @@ skip_thunk:
 
 		return (error);
 	}
+	case KDGETMODE:
+		*(int *)data = (vw->vw_flags & VWF_GRAPHICS) ?
+		    KD_GRAPHICS : KD_TEXT;
+		return (0);
 	case KDGKBMODE: {
 		error = 0;
 


More information about the svn-src-head mailing list