On Wed, 21 Oct 2015, Christos Zoulas wrote:
On Oct 21, 10:30am, paul%vps1.whooppee.com@localhost (Paul Goyette) wrote:
-- Subject: More terminal iocctl's need to be PASSTHROUGH?
| I noticed christos updated the list of PASSTHROGUH IOCCTLs the other
| day, so I figured that might reduce the boucing in/out of compat module.
|
| But it seems that there's more work to do here. In a xterm window, and
| running tcsh as my shell, simply typing a backspace character causes the
| module to bounce in.
|
Can you apply this and tell me what it prints? It does not print for me.
christos
Index: tty.c
===================================================================
RCS file: /cvsroot/src/sys/kern/tty.c,v
retrieving revision 1.269
diff -u -u -r1.269 tty.c
--- tty.c 18 Oct 2015 15:58:23 -0000 1.269
+++ tty.c 21 Oct 2015 11:52:44 -0000
@@ -1395,6 +1395,7 @@
return EPASSTHROUGH;
default:
+ printf("BARF 0x%lx\n", cmd);
#ifdef COMPAT_60
error = compat_60_ttioctl(tp, cmd, data, flag, l);
if (error != EPASSTHROUGH)
I just booted up with this, and here's what I got. The first of these happens almost immediately after starting xdm ... # dmesg | grep BARF BARF 0x40245765 BARF 0x40087603 BARF 0x40087603 BARF 0x80087602 BARF 0x20004b0a BARF 0x20004b42 BARF 0x40044b41 BARF 0x20004b42 BARF 0x20004b07 BARF 0x40044b41 BARF 0x20004b42 BARF 0x20004b07 BARF 0x20004b0a BARF 0x20007604 BARF 0x20004b0a BARF 0x20007604 BARF 0x20004b07 BARF 0x40044b41 BARF 0x20004b42 BARF 0x20004b42 BARF 0x20004b42 BARF 0x20004b42 # +------------------+--------------------------+-------------------------+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org | +------------------+--------------------------+-------------------------+