Commit d311fd3e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

tty: Add some comments about console and bsd terminals

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9b5e0509
...@@ -39,7 +39,10 @@ ...@@ -39,7 +39,10 @@
/* /*
* Here are some notes about overall TTY c/r design. At moment * Here are some notes about overall TTY c/r design. At moment
* we support unix98 ptys only. * we support unix98 ptys only. Supporting legacy BSD terminals
* is impossible without help from the kernel side -- the indices
* of such terminals are not reported anywhere in the kernel so that
* we can't figure out active pairs.
* *
* Usually the PTYs represent a pair of links -- master peer and slave * Usually the PTYs represent a pair of links -- master peer and slave
* peer. Master peer must be opened before slave. Internally, when kernel * peer. Master peer must be opened before slave. Internally, when kernel
...@@ -60,6 +63,9 @@ ...@@ -60,6 +63,9 @@
* only one slave parameters should be restored, there is no need to carry * only one slave parameters should be restored, there is no need to carry
* all parameters for every slave peer we've found. * all parameters for every slave peer we've found.
* *
* Note the /dev/pts/ is rather convenient agreement and internally the
* kernel doesn't care where exactly the inodes of ptys are laying --
* it depends on "devpts" mount point path.
*/ */
#undef LOG_PREFIX #undef LOG_PREFIX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment