# control_get_pane

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

```c
static struct control_pane * control_get_pane(struct client *c, struct window_pane *wp)
```

## Parameters

- `c` (`struct client *`)
- `wp` (`struct window_pane *`)

## Called by

- [`control_add_pane`](/en/tmux/3.7c/reference/c-function-control-c-control_add_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L252)
- [`control_continue_pane`](/en/tmux/3.7c/reference/c-function-control_continue_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L370)
- [`control_pane_offset`](/en/tmux/3.7c/reference/c-function-control_pane_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L324)
- [`control_set_pane_on`](/en/tmux/3.7c/reference/c-function-control_set_pane_on/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L343)
- [`control_write_output`](/en/tmux/3.7c/reference/c-function-control_write_output/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L485)

## Referenced declarations

- [`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)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`control_state.panes`](/en/tmux/3.7c/reference/c-struct-control_state-panes/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
