minix/drivers/tty
David van Moolenbroek ec2359d566 TTY: allow selecting on translated minors
Due to the existence of /dev/console and /dev/log, and the new
"console=" setting, it is now possible that a single non-PTY object
(e.g. serial) is accessible through two different minor numbers.  This
poses a problem when sending late select replies (CDEV_SEL2_REPLY),
because the object's minor number can not be used to identify the
device.  Since selecting on such objects through translated minor
numbers is actually required, we now save the minor number used to
initiate the select query in order to send a late reply.

The solution is suboptimal, as it is not possible to use two different
minors to select on the same object at once.  In the future, there
should be at least one select record for each minor that can be used
with each object.

Change-Id: I4d39681d2ffd68b4047daf933d45b7bafe3c885e
2014-03-01 09:04:55 +01:00
..
arch Replacing timer_t by netbsd's timer_t 2014-03-01 09:04:54 +01:00
keymaps fix sysroot clang 2014-02-18 11:25:01 +01:00
Makefile TTY: use libchardriver; clean up 2014-03-01 09:04:52 +01:00
pty.c Rewrite character driver protocol 2014-03-01 09:04:52 +01:00
tty.c TTY: allow selecting on translated minors 2014-03-01 09:04:55 +01:00
tty.h TTY: allow selecting on translated minors 2014-03-01 09:04:55 +01:00