svn commit: r329305 - stable/11/sys/dev/vt

Hans Petter Selasky hselasky at FreeBSD.org
Thu Feb 15 09:00:12 UTC 2018


Author: hselasky
Date: Thu Feb 15 09:00:11 2018
New Revision: 329305
URL: https://svnweb.freebsd.org/changeset/base/329305

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

Modified:
  stable/11/sys/dev/vt/vt_core.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/vt/vt_core.c
==============================================================================
--- stable/11/sys/dev/vt/vt_core.c	Thu Feb 15 08:57:14 2018	(r329304)
+++ stable/11/sys/dev/vt/vt_core.c	Thu Feb 15 09:00:11 2018	(r329305)
@@ -2150,6 +2150,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-stable-11 mailing list