# tty_read_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L168
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty-c-tty_read_callback/

```c
static void tty_read_callback(int fd, short events, void *data)
```

## Parameters

- `fd` (`int`)
- `events` (`short`)
- `data` (`void *`)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L179)
- [`server_client_lost`](/en/tmux/3.7c/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L183)
- [`tty_keys_next`](/en/tmux/3.7c/reference/c-function-tty_keys_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L188)

## Referenced by

- [`tty_open`](/en/tmux/3.7c/reference/c-function-tty_open/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`tty.event_in`](/en/tmux/3.7c/reference/c-struct-tty-event_in/) (attribute)
- [`client.fd`](/en/tmux/3.7c/reference/c-struct-client-fd/) (attribute)
- [`tty.in`](/en/tmux/3.7c/reference/c-struct-tty-in/) (attribute)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
