Expand description
Pseudo-terminal (PTY) scheme.
A PTY pair consists of a master (controlling process) and a slave (child process). Data written to one side is readable from the other.
ยงScheme paths
| Path | Description |
|---|---|
/dev/pts/new | Open to allocate a new PTY pair (returns master fd). |
/dev/pts/N | Open the slave side of PTY number N. |
/dev/pts/ | List existing PTYs. |
Structsยง
- PtyPair ๐
- State of a single PTY pair.
- PtyScheme
- Manages all PTY pairs.
- RingBuf ๐
- Ring buffer used for each direction of a PTY pair.
Constantsยง
- PTY_
BUF_ ๐SIZE
Staticsยง
- PTY_
SCHEME ๐
Functionsยง
- get_
pty_ scheme - Get a reference to the global PTY scheme instance.
- init_
pty_ scheme - Initialize and mount the PTY scheme at
/dev/pts.