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 <yohanes...@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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to