Blame view
Documentation/filesystems/devpts.txt
1.25 KB
eedf265aa devpts: Make each... |
1 2 3 |
Each mount of the devpts filesystem is now distinct such that ptys and their indicies allocated in one mount are independent from ptys and their indicies in all other mounts. |
784c4d8b1 Document usage of... |
4 |
|
eedf265aa devpts: Make each... |
5 6 |
All mounts of the devpts filesystem now create a /dev/pts/ptmx node with permissions 0000. |
784c4d8b1 Document usage of... |
7 |
|
eedf265aa devpts: Make each... |
8 9 10 11 |
To retain backwards compatibility the a ptmx device node (aka any node created with "mknod name c 5 2") when opened will look for an instance of devpts under the name "pts" in the same directory as the ptmx device node. |
784c4d8b1 Document usage of... |
12 |
|
eedf265aa devpts: Make each... |
13 14 15 16 17 |
As an option instead of placing a /dev/ptmx device node at /dev/ptmx it is possible to place a symlink to /dev/pts/ptmx at /dev/ptmx or to bind mount /dev/ptx/ptmx to /dev/ptmx. If you opt for using the devpts filesystem in this manner devpts should be mounted with the ptmxmode=0666, or chmod 0666 /dev/pts/ptmx should be called. |
784c4d8b1 Document usage of... |
18 |
|
8b253b07e TTY, devpts: docu... |
19 20 |
Total count of pty pairs in all instances is limited by sysctls: kernel.pty.max = 4096 - global limit |
eedf265aa devpts: Make each... |
21 |
kernel.pty.reserve = 1024 - reserved for filesystems mounted from the initial mount namespace |
8b253b07e TTY, devpts: docu... |
22 23 24 25 26 |
kernel.pty.nr - current count of ptys Per-instance limit could be set by adding mount option "max=<count>". This feature was added in kernel 3.4 together with sysctl kernel.pty.reserve. In kernels older than 3.4 sysctl kernel.pty.max works as per-instance limit. |