# tty_block_maybe

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

```c
static int tty_block_maybe(struct tty *tty)
```

## Parameters

- `tty` (`struct tty *`)

## Calls

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

## Referenced by

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

## Referenced declarations

- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`client.discarded`](/en/tmux/3.7c/reference/c-struct-client-discarded/) (attribute)
- [`tty.discarded`](/en/tmux/3.7c/reference/c-struct-tty-discarded/) (attribute)
- [`tty.flags`](/en/tmux/3.7c/reference/c-struct-tty-flags/) (attribute)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`tty.out`](/en/tmux/3.7c/reference/c-struct-tty-out/) (attribute)
- [`tty.timer`](/en/tmux/3.7c/reference/c-struct-tty-timer/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`TTY_BLOCK`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_block/) (constant)
- [`TTY_BLOCK_INTERVAL`](/en/tmux/3.7c/reference/c-define-tty-c-tty_block_interval/) (constant)
- [`TTY_BLOCK_START`](/en/tmux/3.7c/reference/c-define-tty-c-tty_block_start/) (constant)
- [`TTY_NOBLOCK`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_noblock/) (constant)
