# control_write_pending

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

```c
static int control_write_pending(struct client *c, struct control_pane *cp, size_t limit)
```

## Parameters

- `c` (`struct client *`)
- `cp` (`struct control_pane *`)
- `limit` (`size_t`)

## 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#L746)

## Calls

- [`control_append_data`](/en/tmux/3.2a/reference/c-function-control-c-control_append_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L698)
- [`control_check_age`](/en/tmux/3.2a/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L677)
- [`control_flush_all_blocks`](/en/tmux/3.2a/reference/c-function-control-c-control_flush_all_blocks/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L672)
- [`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#L670)
- [`control_window_pane`](/en/tmux/3.2a/reference/c-function-control-c-control_window_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L666)
- [`control_write_data`](/en/tmux/3.2a/reference/c-function-control-c-control_write_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L708)
- [`get_timer`](/en/tmux/3.2a/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L664)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L689)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/3.2a/reference/c-struct-control_state-all_blocks/) (attribute)
- [`control_pane.blocks`](/en/tmux/3.2a/reference/c-struct-control_pane-blocks/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`control_pane`](/en/tmux/3.2a/reference/c-struct-control_pane/) (struct)
- [`client.control_state`](/en/tmux/3.2a/reference/c-struct-client-control_state/) (attribute)
- [`control_block.entry`](/en/tmux/3.2a/reference/c-struct-control_block-entry/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`control_pane.pane`](/en/tmux/3.2a/reference/c-struct-control_pane-pane/) (attribute)
- [`control_block.size`](/en/tmux/3.2a/reference/c-struct-control_block-size/) (attribute)
- [`control_block.t`](/en/tmux/3.2a/reference/c-struct-control_block-t/) (attribute)
