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

Reply via email to