# control_write_pending

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

## Calls

- [`control_append_data`](/en/tmux/3.7c/reference/c-function-control-c-control_append_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L710)
- [`control_check_age`](/en/tmux/3.7c/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L689)
- [`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#L684)
- [`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#L682)
- [`control_window_pane`](/en/tmux/3.7c/reference/c-function-control-c-control_window_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L678)
- [`control_write_data`](/en/tmux/3.7c/reference/c-function-control-c-control_write_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L720)
- [`get_timer`](/en/tmux/3.7c/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L676)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L701)

## Referenced declarations

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