# control_write_callback

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

```c
static void control_write_callback(struct bufferevent *bufev, void *data)
```

## Parameters

- `bufev` (`struct bufferevent *`)
- `data` (`void *`)

## Calls

- [`control_flush_all_blocks`](/en/tmux/3.7c/reference/c-function-control-c-control_flush_all_blocks/) (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#L758)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L748)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`CONTROL_BUFFER_HIGH`](/en/tmux/3.7c/reference/c-define-control-c-control_buffer_high/) (constant)
- [`client.control_state`](/en/tmux/3.7c/reference/c-struct-client-control_state/) (attribute)
- [`CONTROL_WRITE_MINIMUM`](/en/tmux/3.7c/reference/c-define-control-c-control_write_minimum/) (constant)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`control_state.pending_count`](/en/tmux/3.7c/reference/c-struct-control_state-pending_count/) (attribute)
- [`control_pane.pending_flag`](/en/tmux/3.7c/reference/c-struct-control_pane-pending_flag/) (attribute)
- [`control_state.pending_list`](/en/tmux/3.7c/reference/c-struct-control_state-pending_list/) (attribute)
- [`control_state.write_event`](/en/tmux/3.7c/reference/c-struct-control_state-write_event/) (attribute)
