Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2017 20:12:49 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325724 - head/sys/dev/vt
Message-ID:  <201711112012.vABKCn4d093984@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 



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