PTM(4) | Kernel Interfaces Manual | PTM(4) |
struct ptmget { int cfd; int sfd; char cn[16]; char sn[16]; };
where cfd and sfd contain the master resp. slave device's file descriptor and cn and sn the corresponding paths in the file system.
The /dev/ptmx device supports two more ioctl(2)s, TIOCGRANTPT, which is used by grantpt(3), TIOCPTSNAME, which is used by ptsname(3).
The ptm device is included with the pseudo-device pty(4). It can be disabled by adding “options NO_DEV_PTM” to the kernel configuration.
November 12, 2005 | NetBSD 6.1 |