CFT: consolectl

Ed Schouten ed at 80386.nl
Thu May 14 21:12:18 UTC 2009


Hello folks,

I just made the following patch for -CURRENT. I did some tests to see
whether it works, but I'd rather send to to hackers@ to see whether it
introduces any regressions:

	http://80386.nl/pub/syscons.diff

What this patch does: right now /dev/consolectl is a TTY that isn't
really useful right now. When you write data to it, it just appears on
the first window and when you read data from it, it will block
indefinitely.

The only reason it exists, is because we want to have this
administrative syscons device that can be used by applications to call
various ioctls. This is also the device node that is used by moused to
deliver mouse events.

So this patch turns /dev/consolectl into a regular device node that can
only process the ioctl events. The advantage is that we don't allocate a
TTY (including buffers) just to process some ioctl events. After you've
applied this patch, `pstat -t' should no longer list consolectl.

I'd love to have some reports of people running X11 to know whether
their mouse still works. Unfortunately I don't have a FreeBSD -CURRENT
system running X11 at the moment. Just let me know if it breaks stuff.
Thanks!

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090514/b37452c9/attachment.pgp


More information about the freebsd-current mailing list