# control_stop

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

```c
void control_stop(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`server_client_lost`](/en/tmux/3.2a/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L340)

## 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#L825)
- [`control_free_sub`](/en/tmux/3.2a/reference/c-function-control-c-control_free_sub/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L820)
- [`control_reset_offsets`](/en/tmux/3.2a/reference/c-function-control_reset_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L826)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/3.2a/reference/c-struct-control_state-all_blocks/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROLCONTROL`](/en/tmux/3.2a/reference/c-define-tmux-h-client_controlcontrol/) (constant)
- [`client.control_state`](/en/tmux/3.2a/reference/c-struct-client-control_state/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`control_state.read_event`](/en/tmux/3.2a/reference/c-struct-control_state-read_event/) (attribute)
- [`control_state.subs`](/en/tmux/3.2a/reference/c-struct-control_state-subs/) (attribute)
- [`control_state.subs_timer`](/en/tmux/3.2a/reference/c-struct-control_state-subs_timer/) (attribute)
- [`control_state.write_event`](/en/tmux/3.2a/reference/c-struct-control_state-write_event/) (attribute)
