# control_flush_all_blocks

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

```c
static void control_flush_all_blocks(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`control_write_callback`](/en/tmux/3.2a/reference/c-function-control-c-control_write_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L730)
- [`control_write_pending`](/en/tmux/3.2a/reference/c-function-control-c-control_write_pending/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L672)

## Calls

- [`control_free_block`](/en/tmux/3.2a/reference/c-function-control-c-control_free_block/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L603)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L598)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/3.2a/reference/c-struct-control_state-all_blocks/) (attribute)
- [`control_block.all_entry`](/en/tmux/3.2a/reference/c-struct-control_block-all_entry/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`client.control_state`](/en/tmux/3.2a/reference/c-struct-client-control_state/) (attribute)
- [`control_block.line`](/en/tmux/3.2a/reference/c-struct-control_block-line/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`control_block.size`](/en/tmux/3.2a/reference/c-struct-control_block-size/) (attribute)
- [`control_state.write_event`](/en/tmux/3.2a/reference/c-struct-control_state-write_event/) (attribute)
