AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
pty Struct Reference

A pseudo-terminal. More...

Data Fields

size_t id
struct tty * tty
struct vnode * master
struct vnode * slave
struct ringbuf * in
 what the master writes, after line editing, for the slave to read
struct ringbuf * out
 what the slave writes, after output processing, for the master to read
struct waitq pts_read_queue
 where the slave's readers sleep, and the writers waiting for room in either ring (pty_slave_write(), pty_master_write())
struct waitq pts_write_queue
 where the slave's writers and the master's readers sleep

Detailed Description

A pseudo-terminal.

Definition at line 29 of file pty.c.

Field Documentation

◆ id

size_t pty::id

Definition at line 30 of file pty.c.

Referenced by ptm_new(), pts_new(), pty_free(), pty_id_get(), pty_ioctl(), and pty_new().

◆ in

struct ringbuf* pty::in

what the master writes, after line editing, for the slave to read

Definition at line 37 of file pty.c.

Referenced by pts_can_read(), pts_read(), pty_free(), pty_input_flush(), pty_new(), and pty_slave_write().

◆ master

struct vnode* pty::master

Definition at line 33 of file pty.c.

Referenced by pty_new().

◆ out

struct ringbuf* pty::out

what the slave writes, after output processing, for the master to read

Definition at line 41 of file pty.c.

Referenced by ptm_can_read(), ptm_read(), pty_free(), pty_master_write(), and pty_new().

◆ pts_read_queue

struct waitq pty::pts_read_queue

where the slave's readers sleep, and the writers waiting for room in either ring (pty_slave_write(), pty_master_write())

Definition at line 45 of file pty.c.

Referenced by ptm_new(), ptm_read(), pts_new(), pts_read(), pty_free(), pty_master_write(), and pty_slave_write().

◆ pts_write_queue

struct waitq pty::pts_write_queue

where the slave's writers and the master's readers sleep

Definition at line 48 of file pty.c.

Referenced by ptm_new(), pts_new(), and pty_free().

◆ slave

struct vnode* pty::slave

Definition at line 34 of file pty.c.

Referenced by pty_free(), and pty_new().

◆ tty

struct tty* pty::tty

The documentation for this struct was generated from the following file:
  • kernel/dev/tty/pty/pty.c