# control_flush_all_blocks

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L596
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-control-c-control_write_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L742)
- [`control_write_pending`](/en/tmux/3.7c/reference/c-function-control-c-control_write_pending/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L684)

## Calls

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

## Referenced declarations

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