# tty_timer_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L176
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty-c-tty_timer_callback/

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

## Parameters

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

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L182)
- [`tty_invalidate`](/en/tmux/3.2a/reference/c-function-tty-c-tty_invalidate/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L189)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`CLIENT_ALLREDRAWFLAGS`](/en/tmux/3.2a/reference/c-define-tmux-h-client_allredrawflags/) (constant)
- [`client.discarded`](/en/tmux/3.2a/reference/c-struct-client-discarded/) (attribute)
- [`tty.discarded`](/en/tmux/3.2a/reference/c-struct-tty-discarded/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`tty.flags`](/en/tmux/3.2a/reference/c-struct-tty-flags/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`tty.timer`](/en/tmux/3.2a/reference/c-struct-tty-timer/) (attribute)
- [`TTY_BLOCK`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_block/) (constant)
- [`TTY_BLOCK_INTERVAL`](/en/tmux/3.2a/reference/c-define-tty-c-tty_block_interval/) (constant)
- [`TTY_BLOCK_STOP`](/en/tmux/3.2a/reference/c-define-tty-c-tty_block_stop/) (constant)
