Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons Add async I/O support.



details:   https://anonhg.NetBSD.org/src/rev/02c12540c9ce
branches:  trunk
changeset: 486769:02c12540c9ce
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sun May 28 10:33:14 2000 +0000

description:
Add async I/O support.

FIOASYNC ioctrl command had been forwarded from wsmux to each mouse devices
and the devices had set their own event queue async mode. But no one had took
care of the event queue's mode of wsmux itself. Wsmux should make it's own
event queue async mode when it receive FIOASYNC command.

diffstat:

 sys/dev/wscons/wsmux.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r c3384794f090 -r 02c12540c9ce sys/dev/wscons/wsmux.c
--- a/sys/dev/wscons/wsmux.c    Sun May 28 10:27:13 2000 +0000
+++ b/sys/dev/wscons/wsmux.c    Sun May 28 10:33:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsmux.c,v 1.8 1999/11/08 10:10:25 augustss Exp $       */
+/*     $NetBSD: wsmux.c,v 1.9 2000/05/28 10:33:14 takemura Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -602,6 +602,13 @@
                DPRINTF(("wsmuxdoioctl: save rawkbd = %d\n", sc->sc_rawkbd));
                break;
 #endif
+       case FIOASYNC:
+               sc->sc_events.async = *(int *)data != 0;
+               return (0);
+       case TIOCSPGRP:
+               if (*(int *)data != sc->sc_events.io->p_pgid)
+                       return (EPERM);
+               return (0);
        default:
                break;
        }



Home | Main Index | Thread Index | Old Index